From 01c1e3cfc0acbdf09f1ddfb34317c94903695473 Mon Sep 17 00:00:00 2001 From: NEZRI Ygal Date: Wed, 19 Jun 2024 11:11:29 +0200 Subject: [PATCH] Fix Ticked ID Bug Fixed a bug related to the Ticket ID that was preventing the creation or modification of a ticket with a free format, enabling smoother integration and precise traceability. --- Watcher/Watcher/site_monitoring/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Watcher/Watcher/site_monitoring/models.py b/Watcher/Watcher/site_monitoring/models.py index 53ac9f4..3d8e96a 100644 --- a/Watcher/Watcher/site_monitoring/models.py +++ b/Watcher/Watcher/site_monitoring/models.py @@ -12,7 +12,7 @@ class Site(models.Model): """ domain_name = models.CharField(max_length=100, unique=True) ticket_id = models.CharField(max_length=20, blank=True, null=True) - rtir = models.IntegerField() + rtir = models.IntegerField(unique=True, blank=True, null=True) ip = models.GenericIPAddressField(blank=True, null=True) ip_second = models.GenericIPAddressField(blank=True, null=True) ip_monitoring = models.BooleanField(default=True)