mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-11-22 00:03:28 +01:00
black formatting
This commit is contained in:
parent
b7a70d92fa
commit
f040f73f51
@ -151,7 +151,7 @@ class SingleMediaSerializer(serializers.ModelSerializer):
|
||||
class MediaSearchSerializer(serializers.ModelSerializer):
|
||||
url = serializers.SerializerMethodField()
|
||||
api_url = serializers.SerializerMethodField()
|
||||
|
||||
|
||||
def get_url(self, obj):
|
||||
return self.context["request"].build_absolute_uri(obj.get_absolute_url())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user