Fix issue with updating servers

This commit is contained in:
Corey 2024-05-03 07:52:32 +00:00
parent 5de61c7a8a
commit ea0b8cbd84
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class Server(models.Model):
# Check if formatted server URL is unique
existing_server = Server.objects.filter(url=self.url).first()
if existing_server:
if existing_server and not self.created:
raise ValidationError("A server with this URL already exists.")
# Validate the server API