Skip to content

Commit

Permalink
Applied suggested fix at django-tastypie#1475
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared Wright committed Jan 25, 2017
1 parent 29eae91 commit 4819dc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tastypie/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -1794,7 +1794,7 @@ def __new__(cls, name, bases, attrs):
include_fields = specified_fields

if include_fields is None:
if meta and meta.object_class:
if meta and getattr(meta, 'object_class'):
include_fields = [f.name for f in meta.object_class._meta.fields]
else:
include_fields = []
Expand Down

0 comments on commit 4819dc6

Please sign in to comment.