Skip to content

Commit

Permalink
Merge pull request #4738 from kobotoolbox/allauth-admin
Browse files Browse the repository at this point in the history
Don't prevent users from saving an existing social application due to provider ID validation
  • Loading branch information
RuthShryock committed Nov 27, 2023
2 parents 1e36e62 + 84e8d95 commit 43e1559
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kobo/apps/django_allauth/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def clean_provider_id(self):
if SocialApp.objects.filter(
Q(provider_id=provider_id) |
Q(provider=provider_id)
).exists():
).exclude(pk=self.instance.pk).exists():
raise ValidationError(
"""The Provider ID value must be unique and cannot match an existing Provider name.
Please use a different value."""
Expand Down

0 comments on commit 43e1559

Please sign in to comment.