Commits

Matthew Schinckel committed ec660d0

Don't serialise hidden fields.

Comments (0)

Files changed (1)

repose/serializers/base.py

             if name in ['id','pk'] and hasattr(form, 'instance'):
                 result[name] = form.instance.pk
                 continue
-            if name in form.hidden_fields():
+            if name in form.hidden_fields() or form[name].is_hidden:
                 continue
             if name in form.data:
                 result[name] = form.data[name]