Hi,

I've just tried to run an existing project work with the newly merged
queryset-refactor branch.

The code does not even compile any more, and I haven't found any help
(or I missed it) on the wiki page [1]. The error I get is:
AttributeError: 'Options' object has no attribute '_name_map'

The line that seems to pose problem is the following:
content['announcements'] =
Resource.objects.filter(r_type='Announcement').filter(date_added__gte=thirteenDaysAgo).order_by('-
start_date')

With the variables defined as:
content = {}
thirteenDaysAgo = datetime.utcnow()-timedelta(13)

To track down the issue I've reduced that line to the following ones:
content['announcements'] =
Resource.objects.filter(r_type='Announcement').filter(date_added__gte=thirteenDaysAgo)

content['announcements'] =
Resource.objects.filter(r_type='Announcement',date_added__gte=thirteenDaysAgo)

content['announcements'] =
Resource.objects.filter(r_type='Announcement')

But I still get the same error.

Can you see what I'm missing here?

Thanks a lot!

Julien

[1] http://code.djangoproject.com/wiki/QuerysetRefactorBranch
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to