> The info_dict never gets implicitly passed -- it's always explicitly
> passed. We're removing the magic, not adding to it! :)
>
> But as for your question, it seems like you're getting that error
> because you're passing in 'queryset' twice.

I've minimized the app to the bare minimum, but the error is still showing up:

urls.py:

from django.conf.urls.defaults import *
from models import TodoItem

# todolist URLs
#
info_dict = {
    'queryset': TodoItem.objects.all() #,
    #'slug_field': 'detail'
}

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

models.py:

from django.db import models

class TodoItem(models.Model):
    text = models.CharField(maxlength=1000)
    dueDate = models.DateField(blank=True, null=True)
    class Admin:
        list_display = ('dueDate', 'text')


The strange thing is that when I don't pass the info_dict there's
still a variable queryset with the string value '1' and with passing
it I get the
"object_detail() got multiple values for keyword argument 'queryset'"
error. Strange

Thanks, Arthur

--~--~---------~--~----~------------~-------~--~----~
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