basicModule.py 456 Bytes
Newer Older
1
2
from django.db import models
from rex.models.tools import UsefullLinksField
3
from rex.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__'