Renommage des consoles en plateformes

This commit is contained in:
2017-09-16 17:42:04 +02:00
parent 0380bc9071
commit b0978034b5
15 changed files with 164 additions and 120 deletions

View File

@ -16,7 +16,7 @@ Including another URLconf
from django.conf.urls import url, include
from django.contrib import admin
from collection import __version__ as app_version
from games.views import GameList, ConsoleViewSet
from games.views import GameList, PlatformViewSet
from rest_framework import routers
from rest_framework.documentation import include_docs_urls
@ -26,7 +26,7 @@ admin.site.site_header = '%s %s' % (admin.site.site_title, app_version)
# Django Rest Framework router
router = routers.DefaultRouter()
router.register(r'consoles', ConsoleViewSet)
router.register(r'platforms', PlatformViewSet)
urlpatterns = [
url(r'^$', GameList.as_view(), name='homepage'),