driRestrictedModule.py 395 Bytes
Newer Older
1
from backend.models.module import BasicModule, BasicModuleSerializer, BasicModuleViewSet
Florent Chehab's avatar
Florent Chehab committed
2
3
4
5
6
7
8
9
10


class DriRestrictedModule(BasicModule):

    class Meta:
        abstract = True


class DriRestrictedModuleSerializer(BasicModuleSerializer):
11
12
13
14
15
16
    class Meta:
        model = DriRestrictedModule


class DriRestrictedModuleViewSet(BasicModuleViewSet):
    serializer_class = DriRestrictedModuleSerializer