mirror of https://github.com/cocosolos/ixion.git
Fix issue with updating servers
This commit is contained in:
parent
5de61c7a8a
commit
ea0b8cbd84
|
|
@ -81,7 +81,7 @@ class Server(models.Model):
|
||||||
|
|
||||||
# Check if formatted server URL is unique
|
# Check if formatted server URL is unique
|
||||||
existing_server = Server.objects.filter(url=self.url).first()
|
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.")
|
raise ValidationError("A server with this URL already exists.")
|
||||||
|
|
||||||
# Validate the server API
|
# Validate the server API
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue