black formatting

This commit is contained in:
Markos Gogoulos 2023-06-12 17:22:39 +03:00
parent b7a70d92fa
commit f040f73f51

View File

@ -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())