# -*- coding: utf8 -*

from django.conf.urls import url, include
from views import *
# from phones.views import *


# REST
from rest_framework import routers
router = routers.DefaultRouter()
router.register(r'races_rest', RacesViewSet,)


urlpatterns = [
    #
    # REST API
    url(r'^api/', include(router.urls)),
    #
    url(r'^create/car/(?P<car_id>\d+)$', RaceCreateView.as_view(), name='race_create'),
    url(r'^(?P<pk>\d+)/update$', RaceUpdateView.as_view(), name='race_update'),
    url(r'^list/$', RacesListView.as_view(), name='races_list'),

]


cd98b083a8e5aa2bd331e787a60e03325f6f5cfa
<mask token>

<mask token>
router.register('races_rest', RacesViewSet)
<mask token>

<mask token>
router = routers.DefaultRouter()
router.register('races_rest', RacesViewSet)
urlpatterns = [url('^api/', include(router.urls)), url(
    '^create/car/(?P<car_id>\\d+)$', RaceCreateView.as_view(), name=
    'race_create'), url('^(?P<pk>\\d+)/update$', RaceUpdateView.as_view(),
    name='race_update'), url('^list/$', RacesListView.as_view(), name=
    'races_list')]

from django.conf.urls import url, include
from views import *
from rest_framework import routers
router = routers.DefaultRouter()
router.register('races_rest', RacesViewSet)
urlpatterns = [url('^api/', include(router.urls)), url(
    '^create/car/(?P<car_id>\\d+)$', RaceCreateView.as_view(), name=
    'race_create'), url('^(?P<pk>\\d+)/update$', RaceUpdateView.as_view(),
    name='race_update'), url('^list/$', RacesListView.as_view(), name=
    'races_list')]

# -*- coding: utf8 -*

from django.conf.urls import url, include
from views import *
# from phones.views import *


# REST
from rest_framework import routers
router = routers.DefaultRouter()
router.register(r'races_rest', RacesViewSet,)


urlpatterns = [
    #
    # REST API
    url(r'^api/', include(router.urls)),
    #
    url(r'^create/car/(?P<car_id>\d+)$', RaceCreateView.as_view(), name='race_create'),
    url(r'^(?P<pk>\d+)/update$', RaceUpdateView.as_view(), name='race_update'),
    url(r'^list/$', RacesListView.as_view(), name='races_list'),

]

