I was looking for some convenient method like this to use with the
object_list generic view. But writing my own wrapper view only took 2
secs.
def speaker_list(request, session_month):
if not session_month in settings.SESSIONS:
return HttpResponseNotFound()
speake
There may be an easier way, but I'd write a view, even if
I then called the generic view from there.
As you've probably figured out, your definition of the queryset
occurs once at import, when object_id isn't even defined, let
alone coming from each request in turn.
Bill
On Sun, Jan 3, 2010 at 4
I want to display all the services for a particular business using the
generic view "object_detail". What I would like to do is pass the
value of an id from the url to the queryset (into object_id) in
urls.py - or a better way to do this using the "object_detail" generic
view.
models.py:
class Bus
3 matches
Mail list logo