Opened 15 years ago
Last modified 3 years ago
#11765 closed
models.DateField(null=True, blank=True) accepts None, but not null string '' — at Initial Version
Reported by: | shmengie | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | yes | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
For some reason I cannot create a record with
class MyModel(models.Model):
models.DateField(null=True, blank=True)
MyModel(MyDateField=) It must be either None or a valid date.
Note:
See TracTickets
for help on using tickets.