Update code according to drf changes.

This commit is contained in:
Tom Hacohen 2020-01-21 09:20:18 +02:00
parent c1f790cad1
commit b026643cce

View File

@ -28,8 +28,8 @@ router.register(r'journal/(?P<journal_uid>[^/]+)', views.EntryViewSet)
router.register(r'user', views.UserInfoViewSet) router.register(r'user', views.UserInfoViewSet)
journals_router = routers.NestedSimpleRouter(router, r'journals', lookup='journal') journals_router = routers.NestedSimpleRouter(router, r'journals', lookup='journal')
journals_router.register(r'members', views.MembersViewSet, base_name='journal-members') journals_router.register(r'members', views.MembersViewSet, basename='journal-members')
journals_router.register(r'entries', views.EntryViewSet, base_name='journal-entries') journals_router.register(r'entries', views.EntryViewSet, basename='journal-entries')
urlpatterns = [ urlpatterns = [