Mercurial > public > sg101
view gcalendar/urls.py @ 1037:7e0c3cbd3cda
Fix bad select_related call.
In Django 1.8, select_related now throws an error if you give it an invalid
field. This was happening. Fix that query.
Also noticed an extra query generated in the display_post template. Fixed.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 29 Dec 2015 22:21:42 -0600 |
parents | 5ba2508939f7 |
children | deed541ca79d |
line wrap: on
line source
""" URLs for the gcalendar application. """ from django.conf.urls import url import gcalendar.views urlpatterns = [ url(r'^$', gcalendar.views.index, name='gcalendar-index'), url(r'^add/$', gcalendar.views.add_event, name='gcalendar-add'), url(r'^change/$', gcalendar.views.edit_events, name='gcalendar-edit_events'), url(r'^change/(\d+)/$', gcalendar.views.edit_event, name='gcalendar-edit_event'), url(r'^delete/$', gcalendar.views.delete_event, name='gcalendar-delete'), url(r'^thanks/add/$', gcalendar.views.add_thanks, name='gcalendar-add_thanks'), url(r'^thanks/change/$', gcalendar.views.edit_thanks, name='gcalendar-edit_thanks'), ]