Hello,
If a user goes to domain.com/entries/ I'd like to show her a list of
all the entries she's created. I'm wrapping the generic list view in
function that filters the query set, like so:
from django.views.generic.list_detail import object_
urls.py
info_dict = {
'queryset': Entry.object
Assuming you know you'll always be filtering Entry objects (probably
true, given the view's name) and using the same template, here's what
I'd do:
===urls.py===
urlpatterns = patterns('',
url(r'^entries/$', view_entry_list),
)
===views.py===
def view_entry_list(request):
queryset = Ent
2 matches
Mail list logo