mirror of
https://github.com/more-tech4-magnum-opus/backend.git
synced 2025-07-10 16:12:25 +03:00
added event crud
This commit is contained in:
parent
d27124e807
commit
7ba849cd29
|
@ -1,8 +1,8 @@
|
|||
from django.urls import path, include
|
||||
from rest_framework_simplejwt.views import TokenObtainPairView, TokenRefreshView
|
||||
|
||||
from events.api.views import ListCreateEventApi, RetireUpdateDeleteEventApi
|
||||
from marketplace.api.views import ListCreateProductApi, RetireUpdateDestroyProductApi
|
||||
from users.api.views import ListCreateUserApi, CreateSeasonApi
|
||||
from users.api.views import (
|
||||
ListCreateUserApi,
|
||||
RetireUpdateDeleteUserApi,
|
||||
|
@ -12,6 +12,7 @@ from users.api.views import (
|
|||
RetireUpdateDeleteStreamApi,
|
||||
ListCreateCommandApi,
|
||||
RetireUpdateDeleteCommandApi,
|
||||
CreateSeasonApi,
|
||||
)
|
||||
|
||||
urlpatterns = [
|
||||
|
@ -103,11 +104,7 @@ urlpatterns = [
|
|||
),
|
||||
),
|
||||
path(
|
||||
'create_season/',
|
||||
include(
|
||||
[
|
||||
path("", CreateSeasonApi.as_view(), name='create new season')
|
||||
]
|
||||
)
|
||||
)
|
||||
"create_season/",
|
||||
include([path("", CreateSeasonApi.as_view(), name="create new season")]),
|
||||
),
|
||||
]
|
||||
|
|
|
@ -22,7 +22,8 @@ class ListCreateUserApi(generics.ListCreateAPIView):
|
|||
|
||||
class CreateSeasonApi(generics.CreateAPIView):
|
||||
serializer_class = CreateSeasonSerializer
|
||||
#permission_classes = [IsAuthenticated, IsAdmin]
|
||||
# permission_classes = [IsAuthenticated, IsAdmin]
|
||||
|
||||
|
||||
class RetireUpdateDeleteUserApi(generics.RetrieveUpdateDestroyAPIView):
|
||||
def get_object(self):
|
||||
|
|
Loading…
Reference in New Issue
Block a user