1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 01:48:21 +02:00

Add logs to the API (this right should only be given to superusers)

This commit is contained in:
Yohann D'ANELLO
2020-03-11 10:08:28 +01:00
parent 38ad870939
commit bc97eb1eb4
8 changed files with 58 additions and 3 deletions

View File

@ -7,6 +7,7 @@ from rest_framework import routers, serializers, viewsets
from activity.api.urls import register_activity_urls
from member.api.urls import register_members_urls
from note.api.urls import register_note_urls
from logs.api.urls import register_logs_urls
class UserSerializer(serializers.ModelSerializer):
@ -41,6 +42,7 @@ router.register('user', UserViewSet)
register_members_urls(router, 'members')
register_activity_urls(router, 'activity')
register_note_urls(router, 'note')
register_logs_urls(router, 'logs')
app_name = 'api'