When using the generic view 'archive_month', Im getting a TypeException
with the message
"got unexpected keyword argument 'posted__range'", where 'posted' is
whatever date_field I put in.

The args are being shunted through a view atm so I can remove another
arg but I don't see any problems with my code (one never can ;)

info_dict = {'app_label': 'blogs','module_name': 'blogs','date_field':
'posted'}

r'(?P<username>\w+)/(?P<year>\d{4})/(?P<month>[a-z]{3})/$',
'archive_by_month', info_dict

def archive_by_month(*args, **kwargs):
        kwargs['extra_context'] = {'username':kwargs['username']}
        del kwargs['username']
        return archive_month(*args, **kwargs)

Any suggestions on this one?


Luke Skibinski Holt

Reply via email to