Skip to content

Commit

Permalink
Fixed issue: wlanslovenija#95
Browse files Browse the repository at this point in the history
  • Loading branch information
pavanv committed Jul 22, 2016
1 parent 23f7aa8 commit 9684629
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tastypie_mongoengine/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,9 +722,11 @@ def get_fields(cls, fields=None, excludes=None):
'attribute': name,
'unique': f.unique or primary_key,
'null': not f.required and not primary_key,
'help_text': f.help_text,
}

if hasattr(f, 'help_text'):
kwargs['help_text'] = f.help_text

# If field is not required, it does not matter if set default value,
# so we do
if not f.required:
Expand Down

0 comments on commit 9684629

Please sign in to comment.