def has_default(self):
        return self._default is not NOT_PROVIDED
Returns a boolean of whether this field has a default value.
dataset/ETHPy150Open django-tastypie/django-tastypie/tastypie/fields.py/ApiField.has_default