Ticket #5085: remove-explicit-specification-of-slug_field-from-website.diff

File remove-explicit-specification-of-slug_field-from-website.diff, 714 bytes (added by Trevor Caira <trevor@…>, 8 years ago)

Removed the explicit specification of slug_field from the urls.py of the weblog of the website

  • apps/blog/urls.py

     
    77}
    88
    99urlpatterns = patterns('django.views.generic.date_based',
    10    (r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/(?P<slug>\w+)/$', 'object_detail', dict(info_dict, slug_field='slug')),
     10   (r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/(?P<slug>\w+)/$', 'object_detail', info_dict),
    1111   (r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/$', 'archive_day', info_dict),
    1212   (r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/$', 'archive_month', info_dict),
    1313   (r'^(?P<year>\d{4})/$', 'archive_year', info_dict),
Back to Top