#9222: Allow callable queryset in generic views
-------------------------------------------------+--------------------------
Reporter: [EMAIL PROTECTED] | Owner: nobody
Status: new | Milestone: post-1.0
Component: Generic views | Version: SVN
Resolution: | Keywords:
Stage: Unreviewed | Has_patch: 1
Needs_docs: 0 | Needs_tests: 1
Needs_better_patch: 0 |
-------------------------------------------------+--------------------------
Changes (by [EMAIL PROTECTED]):
* needs_better_patch: => 0
* needs_tests: => 1
* needs_docs: => 0
Comment:
Is this really neccessary? Since the queryset-function is not getting
access to the request, this seems to be kind of limited.
Wouldn't a custom manager method do the trick much better? For more
complex computations of the queryset it would often be useful to have
access to the request and likely the view arguments too, hence a wrapper
would be way more useful.
See http://www.b-list.org/weblog/2006/nov/16/django-tips-get-most-out-
generic-views/
The patch is also missing tests.
-1
--
Ticket URL: <http://code.djangoproject.com/ticket/9222#comment:1>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" 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-updates?hl=en
-~----------~----~----~----~------~----~------~--~---