Skip to content

Commit

Permalink
Merge branch 'master' of github.com:shymonk/django-datatable
Browse files Browse the repository at this point in the history
  • Loading branch information
shymonk committed Nov 16, 2015
2 parents 8d3d8cd + d285ab5 commit 24049a0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion table/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ def resolve(self, context, quiet=True):
obj = obj[int(level)]
else:
if callable(getattr(obj, level)):
obj = getattr(obj, level)()
try:
obj = getattr(obj, level)()
except KeyError:
obj = getattr(obj, level)
else:
# for model field that has choice set
# use get_xxx_display to access
Expand Down

0 comments on commit 24049a0

Please sign in to comment.