Opened 10 years ago

Last modified 10 years ago

#23301 closed Bug

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

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 (last modified by Fletcher Tomalty)

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.

Edit: after some testing/process of elimination, it looks like the bug isn't quite that simple. Stand by while I figure out exactly how to reproduce it.

Change History (1)

comment:1 by Fletcher Tomalty, 10 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top