mirror of
https://github.com/Nebucatnetzer/network_inventory.git
synced 2024-07-22 15:47:31 +02:00
24 lines
529 B
Python
24 lines
529 B
Python
|
from rest_framework import serializers
|
||
|
|
||
|
from .models import Weekday
|
||
|
from .models import Month
|
||
|
from .models import DayOfMonth
|
||
|
|
||
|
|
||
|
class WeekdaySerializer(serializers.HyperlinkedModelSerializer):
|
||
|
class Meta:
|
||
|
model = Weekday
|
||
|
fields = '__all__'
|
||
|
|
||
|
|
||
|
class MonthSerializer(serializers.HyperlinkedModelSerializer):
|
||
|
class Meta:
|
||
|
model = Month
|
||
|
fields = '__all__'
|
||
|
|
||
|
|
||
|
class DayOfMonthSerializer(serializers.HyperlinkedModelSerializer):
|
||
|
class Meta:
|
||
|
model = DayOfMonth
|
||
|
fields = '__all__'
|