Commits

Shan...@gmail.com  committed 2a7088c

Serializers now serialize null values correctly. Removed some more handler magic in the process.

  • Participants
  • Parent commits 99b02a8

Comments (0)

Files changed (1)

File piston/emitters.py

                             else:
                                 ret[maybe_field] = _any(maybe)
                         else:
-                            handler_f = getattr(handler or self.handler, maybe_field, None)
-
-                            if handler_f:
-                                ret[maybe_field] = _any(handler_f(data))
-
+							ret[maybe_field] = None
             else:
                 for f in data._meta.fields:
                     ret[f.attname] = _any(getattr(data, f.attname))