-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

That would be extremely handy to have. I too thought Nkeric's first
pattern should work how it looks:

article_list_dict = {
    'queryset': Article.objects.all(),
}

urlpatterns = patterns('',
    (r'category/(?P<category_id>\d+)/$',
'django.views.generic.list_detail.object_list', article_list_dict),
)

Using the named section and its value to make a filter by. Seeing how
Django gets more awesome by the day I'm sure it will be in soon : )

nkeric wrote:
> WoW! I'm currently using the 1st workaround :)
> the 2nd one enlightens me a lot!
> BiG thanks to Ivan :-D
> 
> btw, how about creating a more generic patch for django's generic view
> methods? Since this is really a "generic" scenario - I usually need to
> "get some object list by some condition" :)
> 
> 
> > 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEdAOEviGJJnAgtcERAjaYAJ0Xx9bOkEsj4VtQiW/F3FlgOIingwCdGmwd
PFz2rzqKoekqNt/JasbTyYQ=
=z1l4
-----END PGP SIGNATURE-----

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