Skip to content
Snippets Groups Projects
Commit e493e521 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Merge branch 'fix_common_serialization' into 'master'

Fix object existence check in common serialiser

See merge request !326
parents 2293d3c4 4b846d84
No related branches found
No related tags found
1 merge request!326Fix object existence check in common serialiser
Pipeline #38983 passed
......@@ -351,7 +351,7 @@ class ContributionCreationSerializer(serializers.ModelSerializer):
)
if self.Meta.model.objects.filter(
author__username__iexact=user, name=name, version=version
author=user, name=name, version=version
).exists():
raise serializers.ValidationError(
"{} {} version {} already exists on this account".format(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment