Doah! Thanks.

On Jul 27, 2:04 am, Daniel Roseman <dan...@roseman.org.uk> wrote:
> On Jul 27, 6:34 am, strayhand <tobyb...@gmail.com> wrote:
>
> > I don't get why I'm getting a validation error with my code. I thought
> > that all of the built in fields are referenced inside of "from
> > django.db import models". Thanks for any help that you may offer.
>
> <snip>
>
> >         status = models.CharField(max_length=7, choices=STATUS_OPTIONS)
> >         submit_date = DateTimeField(auto_now_add=True)
> >         change_date = DateTimeField(auto_now=True)
>
> They are, but you're not referring to it there. Everywhere else, you
> use models.<whatever>Field - but for some reason on these two
> DateTimeFields you've missed off the 'models.' reference.
> --
> DR.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to