Return a boolean of whether this field has a default value.
(self)
| 1051 | return self.get_db_prep_value(value, connection=connection, prepared=False) |
| 1052 | |
| 1053 | def has_default(self): |
| 1054 | """Return a boolean of whether this field has a default value.""" |
| 1055 | return self.default is not NOT_PROVIDED |
| 1056 | |
| 1057 | def has_db_default(self): |
| 1058 | """Return a boolean of whether this field has a db_default value.""" |
no outgoing calls