clock record post perm
This commit is contained in:
parent
2261cf1627
commit
988dc29ef6
|
@ -18,6 +18,7 @@ from rest_framework_simplejwt.tokens import RefreshToken
|
||||||
from rest_framework import exceptions
|
from rest_framework import exceptions
|
||||||
from apps.system.models import User
|
from apps.system.models import User
|
||||||
from apps.system.serializers import UserSimpleSerializer
|
from apps.system.serializers import UserSimpleSerializer
|
||||||
|
from rest_framework.permissions import AllowAny
|
||||||
logger = logging.getLogger('log')
|
logger = logging.getLogger('log')
|
||||||
|
|
||||||
|
|
||||||
|
@ -61,6 +62,7 @@ class ClockRecordViewSet(CreateModelMixin, ListModelMixin, GenericViewSet):
|
||||||
"""
|
"""
|
||||||
perms_map = {'get':'*', 'post':'*'}
|
perms_map = {'get':'*', 'post':'*'}
|
||||||
authentication_classes = []
|
authentication_classes = []
|
||||||
|
permission_classes = [AllowAny]
|
||||||
queryset = ClockRecord.objects.select_related('create_by').all()
|
queryset = ClockRecord.objects.select_related('create_by').all()
|
||||||
serializer_class = ClockRecordListSerializer
|
serializer_class = ClockRecordListSerializer
|
||||||
filterset_class = ClockRecordFilterSet
|
filterset_class = ClockRecordFilterSet
|
||||||
|
|
Loading…
Reference in New Issue