#24678: auto_add and auto_add_now cannot be used together in DateTimeField
definition
-------------------------------------+-------------------------------------
Reporter: moritz.pfeiffer | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 1.8
(models, ORM) | Keywords: DateTimeField,
Severity: Normal | auto_now, auto_now_add
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
When I use auto_now=True in combination with auto_now_add=True on a
models.DateTimeField I get the following error:
python manage.py check:
(fields.E160) The options auto_now, auto_now_add, and default are mutually
exclusive. Only one of these options may be present.
See the attached project with a simple model illustrating this issue.
--
Ticket URL: <https://code.djangoproject.com/ticket/24678>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/058.59d58ac0b02fb4b06c90a9eb8f2891d7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.