# -*- coding: iso-8859-1 -*-
from __future__ import unicode_literals, absolute_import
from django.conf.urls import patterns, url

from .views import (BookingCreateView, BookingListView, BookingTypeDetailView,
                    SlottimeSelectView)

urlpatterns = patterns(
    'nowait.views',
    # url(r'^$', BookingTypeListView.as_view(), name='home'),
    url(r'^booking/$', BookingListView.as_view(),
        name='booking_list'),
    url(r'^booking/create/(?P<slottime_pk>\d+)/$', BookingCreateView.as_view(),
        name='booking_create'),
    url(r'^(?P<slug>[-_\w]+)/$', BookingTypeDetailView.as_view(),
        name='bookingtype_detail'),
    url(r'^(?P<slug>[-_\w]+)/slottime/select/$', SlottimeSelectView.as_view(),
        name='slottime_select'),
)

# -*- coding: iso-8859-1 -*-
from __future__ import unicode_literals, absolute_import
from django.conf.urls import patterns, url

from .views import (BookingCreateView, BookingDetailView, BookingListView,
                    BookingTypeDetailView, SlottimeSelectView)

urlpatterns = patterns(
    'nowait.views',
    # url(r'^$', BookingTypeListView.as_view(), name='home'),
    url(r'^booking/$', BookingListView.as_view(),
        name='booking_list'),
    url(r'^booking/(?P<pk>\d+)/$', BookingDetailView.as_view(),
        name='booking_detail'),
    url(r'^booking/create/(?P<slottime_pk>\d+)/$', BookingCreateView.as_view(),
        name='booking_create'),
    url(r'^(?P<slug>[-_\w]+)/$', BookingTypeDetailView.as_view(),
        name='bookingtype_detail'),
    url(r'^(?P<slug>[-_\w]+)/slottime/select/$', SlottimeSelectView.as_view(),
        name='slottime_select'),
)

add BookingTypeDetailView to urls