On Wednesday, 19 November 2014 15:11:27 UTC, Carl Meyer wrote:
>
> Hi Daniel,
>
> On 11/19/2014 08:07 AM, Daniel Grace wrote:
> > I have already installed pytz (2014.17) and I have set USE_TZ=True. I
> > don't use any naive datetimes in my application. This error is caused
> > by something that the Django test command is doing automatically, if you
> > look at the traceback you will see that it is something to do with
> > migrations. I am using Django 1.7.
>
> What is the default value for your Flow.created field?
>
> Carl
>
>
Hi Carl,
I was not specifying one, so I changed my model and did a "makemigrations"
and a "syncdb" :
class Flow(models.Model):
ref = models.CharField(max_length=32)
state = models.ForeignKey(State)
flow_type = models.ForeignKey(Type)
created = models.DateTimeField(db_index=True, auto_now_add=True,
default=timezone.now)
modified = models.DateTimeField(db_index=True, auto_now=True,
default=timezone.now)
version = models.IntegerField()
But I still get the exact same warning (see my original message in this
thread) !
--
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/99783c9d-fe30-44cf-b407-53ad804e3ecb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.