Commit 33de732d authored by Elia Ponzio's avatar Elia Ponzio
Browse files

Add PK

parent 3fe7e80f
......@@ -15,14 +15,14 @@ class UserSerializer(serializers.HyperlinkedModelSerializer):
class DeltaSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Delta
fields = ('url', 'task', 'timestamp', 'success', 'latest_check', 'return_value')
fields = ('url', 'pk', 'task', 'timestamp', 'success', 'latest_check', 'return_value')
class PeriodicTaskSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = PeriodicTask
fields = ('url', 'name', 'task', 'interval', 'args', 'kwargs', 'expire_seconds', 'enabled')
fields = ('url', 'pk', 'name', 'task', 'interval', 'args', 'kwargs', 'expire_seconds', 'enabled')
class IntervalScheduleSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = IntervalSchedule
fields = ('url', 'every', 'period',)
fields = ('url', 'pk', 'every', 'period',)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment