Commits

Cody Soyland  committed ae7910d

Add check for ManyRelatedManager in Emitter introspection routine.

  • Participants
  • Parent commits 3690538

Comments (0)

Files changed (1)

File piston/emitters.py

                     ret = _any(f())
             elif repr(thing).startswith("<django.db.models.fields.related.RelatedManager"):
                 ret = _any(thing.all())
+            elif repr(thing).startswith("<django.db.models.fields.related.ManyRelatedManager"):
+                ret = _any(thing.all())
             else:
                 ret = smart_unicode(thing, strings_only=True)