1. Curtis Maloney
  2. gnocchi-ajax

Commits

funkybob  committed ad741bf

Corrected digattr to call callables

  • Participants
  • Parent commits a533485
  • Branches default

Comments (0)

Files changed (1)

File gnocchi/ajax/serialiser.py

View file
  • Ignore whitespace
                     obj = obj[int(step)]
                 except (IndexError, ValueError, KeyError, TypeError):
                     return default
+        if callable(obj):
+            obj = obj()
     return obj
 
 class SimpleSerialiser(Serializer):