mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 05:49:16 +02:00
See #297: linting of various, uncommon errors
This commit is contained in:
parent
ab80dffeea
commit
d17ceec1f0
29 changed files with 39 additions and 109 deletions
|
@ -334,7 +334,7 @@ class FollowSerializer(serializers.Serializer):
|
|||
return models.Follow.objects.get_or_create(
|
||||
actor=self.validated_data["actor"],
|
||||
target=self.validated_data["object"],
|
||||
**kwargs,
|
||||
**kwargs, # noqa
|
||||
)[0]
|
||||
|
||||
def to_representation(self, instance):
|
||||
|
@ -345,7 +345,6 @@ class FollowSerializer(serializers.Serializer):
|
|||
"object": instance.target.url,
|
||||
"type": "Follow",
|
||||
}
|
||||
return ret
|
||||
|
||||
|
||||
class APIFollowSerializer(serializers.ModelSerializer):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue