On Thu, Mar 24, 2011 at 12:40 PM, Ryan Osborn <ryan.osbor...@gmail.com> wrote:
> I was just wondering if there was a simple way to condense this as
> with django 1.2 I could add all this in to a dictionary like:
>
> info_dict = {'model': Entry, 'date_field': 'created', 'paginate_by':
> 10}


Can you not set your info_dict just like that, and then rewrite it like this:

YearArchiveView.as_view(**info_dict),name='blog_archive_year'),
url(r'(?P<year>\d{4})/(?P<month>[a-z]{3})/$',


-- 
Regards,
Ian Clelland
<clell...@gmail.com>

-- 
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