basicModule.py 464 Bytes
Newer Older
1
from django.db import models
2
3
from backend.models.tools import UsefullLinksField
from backend.models.module import VersionnedModule, VersionnedModuleSerializer
4
5


6
class BasicModule(VersionnedModule):
7

8
9
    comment = models.TextField(blank=True)
    usefull_links = UsefullLinksField(blank=True)
10

11
12
    class Meta:
        abstract = True
Florent Chehab's avatar
Florent Chehab committed
13
14


15
class BasicModuleSerializer(VersionnedModuleSerializer):
Florent Chehab's avatar
Florent Chehab committed
16
17
18

    class Meta:
        model = BasicModule
19
        fields = '__all__'