MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / create

Method create

apps/epg/serializers.py:77–82  ·  view source on GitHub ↗
(self, validated_data)

Source from the content-addressed store, hash-verified

75 return instance
76
77 def create(self, validated_data):
78 cron_expr = validated_data.pop('cron_expression', '')
79 instance = EPGSource(**validated_data)
80 instance._cron_expression = cron_expr
81 instance.save()
82 return instance
83
84class ProgramDataSerializer(serializers.ModelSerializer):
85

Calls 2

saveMethod · 0.95
EPGSourceClass · 0.85