Opened 10 years ago

Last modified 10 years ago

#23301 closed Bug

DateField doesn't work when called 'date' — at Initial Version

Reported by: Fletcher Tomalty Owned by: nobody
Component: Database layer (models, ORM) Version: 1.6
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When called anything else it seems to work fine.

m = MyModel(date = datetime.date.today())
m.save()
MyModel.objects.get().date # None

# models.py
class MyModel(models.Model):
        date = models.DateField()

Running Django 1.6.5. Let me know what else is required to debug/reproduce.

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top