Fixes #1622 - split the api into 4 apps: core, history, schedule, storage - exploded the settings into testing/prod
21 lines
561 B
Python
21 lines
561 B
Python
from rest_framework import serializers
|
|
|
|
from ..models import SmartBlock, SmartBlockContent, SmartBlockCriteria
|
|
|
|
|
|
class SmartBlockSerializer(serializers.HyperlinkedModelSerializer):
|
|
class Meta:
|
|
model = SmartBlock
|
|
fields = "__all__"
|
|
|
|
|
|
class SmartBlockContentSerializer(serializers.HyperlinkedModelSerializer):
|
|
class Meta:
|
|
model = SmartBlockContent
|
|
fields = "__all__"
|
|
|
|
|
|
class SmartBlockCriteriaSerializer(serializers.HyperlinkedModelSerializer):
|
|
class Meta:
|
|
model = SmartBlockCriteria
|
|
fields = "__all__"
|