Hi all, i'm trying to calling a genric view from a simple custom view
(why? see this
http://groups.google.com/group/django-users/browse_thread/thread/b5692e73f2b52b9)
but i'm running into trouble when feeding the
django.views.generic.date_based.object_detail my slug parameter. I'm
trying this:
def search_object_detail(request, year, month, day, slug):
return date_based.object_detail(
request,
year,
month,
day,
Mymodel.objects.filter(status=1),
'pub_date',
slug = 'slug',
slug_field = 'slug',
template_name = 'detail.html',
extra_context = {
'error': error,
}
)
which seems to be what the django API is wanting:
295 -def object_detail(request, year, month, day, queryset,
date_field,
296 month_format='%b', day_format='%d', object_id=None,
slug=None,
297 slug_field='slug', template_name=None,
template_name_field=None,
298 template_loader=loader, extra_context=None,
context_processors=None,
299 template_object_name='object', mimetype=None,
allow_future=False):
but not. What am i doing wrong? Sorry for posting a lamo query but
maybe someone else will learn from this,
cheers,
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---