from django.conf.urls import patterns, url, include
from rest_framework import routers

from wafer.talks.views import (
    Speakers, TalkCreate, TalkDelete, TalkUpdate, TalkView, UsersTalks,
    TalksViewSet)

router = routers.DefaultRouter()
router.register(r'talks', TalksViewSet)

urlpatterns = patterns(
    '',
    url(r'^$', UsersTalks.as_view(), name='wafer_users_talks'),
    url(r'^page/(?P<page>\d+)$', UsersTalks.as_view(),
        name='wafer_users_talks_page'),
    url(r'^new/$', TalkCreate.as_view(), name='wafer_talk_submit'),
    url(r'^(?P<pk>\d+)/$', TalkView.as_view(), name='wafer_talk'),
    url(r'^(?P<pk>\d+)/edit/$', TalkUpdate.as_view(),
        name='wafer_talk_edit'),
    url(r'^(?P<pk>\d+)/delete/$', TalkDelete.as_view(),
        name='wafer_talk_delete'),
    url(r'^speakers/$', Speakers.as_view(), name='wafer_talks_speakers'),
    url(r'^api/', include(router.urls)),
)

from django.conf.urls import patterns, url, include
from rest_framework import routers

from wafer.talks.views import (
    Speakers, TalkCreate, TalkDelete, TalkUpdate, TalkView, UsersTalks,
    TalksViewSet)

router = routers.DefaultRouter()
router.register(r'talks', TalksViewSet)

urlpatterns = patterns(
    '',
    url(r'^$', UsersTalks.as_view(), name='wafer_users_talks'),
    url(r'^page/(?P<page>\d+)/$', UsersTalks.as_view(),
        name='wafer_users_talks_page'),
    url(r'^new/$', TalkCreate.as_view(), name='wafer_talk_submit'),
    url(r'^(?P<pk>\d+)/$', TalkView.as_view(), name='wafer_talk'),
    url(r'^(?P<pk>\d+)/edit/$', TalkUpdate.as_view(),
        name='wafer_talk_edit'),
    url(r'^(?P<pk>\d+)/delete/$', TalkDelete.as_view(),
        name='wafer_talk_delete'),
    url(r'^speakers/$', Speakers.as_view(), name='wafer_talks_speakers'),
    url(r'^api/', include(router.urls)),
)

Add a trailing slash to the paginated talk list
Add a trailing slash to the paginated talk list
