Hi all,
I am using django.views.generic.date_based.archive_index in my url
patterns as below:

story_info_dict = {
      'queryset': CareStory.objects.all(),
      'date_field': 'date_created',
      }

urlpatterns = patterns('',
..

  (r'^story/index/?$',
'django.views.generic.date_based.archive_index', story_info_dict),

)

Now, the actual queryset that I intend to pass is
story_info_dict = {
      'queryset': CareStory.objects.filter(user=user),
      'date_field': 'date_created',
      }

But since it is in urls.py, I cannot figure out how am I going to pass
the user variable dynamically and have the filtering done.


Any help on this will be really appreciated.

Thanks in advance,
Sonal.
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to