See #297: linting of various, uncommon errors

This commit is contained in:
Eliot Berriot 2018-06-10 12:06:46 +02:00
parent ab80dffeea
commit d17ceec1f0
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
29 changed files with 39 additions and 109 deletions

View file

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