diff --git a/tastypie_mongoengine/resources.py b/tastypie_mongoengine/resources.py index 182e187..51fb8b2 100644 --- a/tastypie_mongoengine/resources.py +++ b/tastypie_mongoengine/resources.py @@ -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: