feat(api): rename track type to library
Related to #1922 - rename library model fields
This commit is contained in:
parent
e5cb21c0e2
commit
05ca410453
14 changed files with 289 additions and 274 deletions
10
api/libretime_api/storage/views/library.py
Normal file
10
api/libretime_api/storage/views/library.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
from rest_framework import viewsets
|
||||
|
||||
from ..models import Library
|
||||
from ..serializers import LibrarySerializer
|
||||
|
||||
|
||||
class LibraryViewSet(viewsets.ModelViewSet):
|
||||
queryset = Library.objects.all()
|
||||
serializer_class = LibrarySerializer
|
||||
model_permission_name = "library"
|
Loading…
Add table
Add a link
Reference in a new issue