Commits

Anonymous committed 689c729

Added fields filtering to the emitter.

Comments (0)

Files changed (1)

             if isinstance(thing, QuerySet):
                 ret = _qs(thing, fields=fields)
             elif isinstance(thing, (tuple, list, set)):
-                ret = _list(thing)
+                ret = _list(thing, fields=fields)
             elif isinstance(thing, dict):
                 ret = _dict(thing, fields)
             elif isinstance(thing, decimal.Decimal):
             """
             return [ _any(v, fields) for v in data ]
 
-        def _list(data):
+        def _list(data, fields=()):
             """
             Lists.
             """
-            return [ _any(v) for v in data ]
+            return [ _any(v, fields) for v in data ]
 
         def _dict(data, fields):
             """