Arthur wrote:
> Hi all
> 
> I'm trying to use generics on the magic removal trunc and I'm a bit at
> a loss because the queryset variable seems to get autoconverted to a
> string. The following urls.py always results in a "AttributeError:
> 'str' object has no attribute 'model'":
> 
> from django.conf.urls.defaults import *
> from models import TodoItem
> 
> info_dict = {
>     'queryset': TodoItem.objects.all()
> }
> 
> urlpatterns = patterns(
>     'django.views.generic.list_detail',
>      (r'(\d+)/$', 'object_detail'),
>  )
> 

Shouldn't that be:

urlpatterns = patterns(
     'django.views.generic.list_detail',
      (r'(\d+)/$', 'object_detail', info_dict),
  )

Your example you aren't passing in that info_dict you created.

-- 
--Max Battcher--
http://www.worldmaker.net/
"I'm gonna win, trust in me / I have come to save this world / and in 
the end I'll get the grrrl!" --Machinae Supremacy, Hero (Promo Track)

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to