1. Jesper Nøhr
  2. django-piston


Thibaud Morel l'Horset  committed e539a10

fixed an issue where property fields were getting dropped by the emitter if their value evaluated to False

  • Participants
  • Parent commits dc0ee00
  • Branches default

Comments (0)

Files changed (1)

File piston/emitters.py

View file
                         maybe = getattr(data, maybe_field, None)
-                        if maybe:
+                        if maybe is not None:
                             if callable(maybe):
                                 if len(inspect.getargspec(maybe)[0]) <= 1:
                                     ret[maybe_field] = _any(maybe())