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

Method update

apps/channels/serializers.py:52–57  ·  view source on GitHub ↗

Handle logo updates

(self, instance, validated_data)

Source from the content-addressed store, hash-verified

50 return Logo.objects.create(**validated_data)
51
52 def update(self, instance, validated_data):
53 """Handle logo updates"""
54 for attr, value in validated_data.items():
55 setattr(instance, attr, value)
56 instance.save()
57 return instance
58
59 def get_cache_url(self, obj):
60 # Cache-busting: append a short hash of the logo's source URL so the browser

Callers

nothing calls this directly

Calls 1

saveMethod · 0.45

Tested by

no test coverage detected