Tuesday, July 26, 2016

Re: Django MySql weirdness

https://github.com/django/django/tree/master/django/contrib/admin/migrations

The migrations are in here - the code that is failing in 0002_logentry_remove_auto_add.py

is 


operations = [
migrations.AlterField(
model_name='logentry',
name='action_time',
field=models.DateTimeField(
verbose_name='action time',
default=timezone.now,
editable=False,
),
),
]

On Monday, July 25, 2016 at 3:17:13 PM UTC-4, Constantine Covtushenko wrote:
Hi Steve,

Can you please provide code snippet here for 'action_time' field?

Regards,

On Mon, Jul 25, 2016 at 9:11 PM, Steve Bischoff <bisch...@gmail.com> wrote:

http://stackoverflow.com/questions/38534734/django-42000-invalid-default-value-for-action-time

I have been trying to figure this one out for a bit now, does anyone have any tips on why mysql won't take in this date time from django?

Thanks

--
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 django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
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/e7900617-6c13-4bbc-b9ad-a542310d79a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/9e10739c-56f7-48b8-bc17-7c8eca40376f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment