> 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-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment