Handle logo updates
(self, instance, validated_data)
| 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 |