On 23/08/2016 9:03 AM, Rich Shepard wrote:
Reading the doc for DateField() I tried to set the default as today's
date, but 'default=date.today' is not accepted.
If there is a way to set today's data as the default for a DateField()
please point me to the doc for it.
https://docs.djangoproject.com/en/1.8/ref/models/fields/#django.db.models.DateField.auto_now
Thanks,
Rich
--
You received this message because you are subscribed to the Google Groups "Django
users" 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].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/9e64273a-246b-ec0c-3c05-597157966ed9%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.