I stumbled upon this error message after porting a project to
magic-removal. In the admin, if I try to get the list view for
something like:
class SomeModel(models.Model):
title = models.CharField(maxlength=200)
date_due = models.DateField(blank= True, null=True)
class Admin:
date_hierarchy ='date_due'
I get this confusing error:
"Exception Value: global name 'date_query' is not defined
Exception Location: magic-removal/django/db/models/query.py in
iterator, line 479"
it took me sometime to realize that you can't have 'date_hierarchy' on
a datefield that can be blank.
anyways, I though I'd post it here in case someone struggles over this
too.
ps: on trunk I get no error.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---