mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-19 22:42:17 +00:00
Swap to better method of validating uniqueness of cable types
SCOPE, Arona, damn it
This commit is contained in:
@@ -75,6 +75,7 @@ class CableType(models.Model):
|
||||
|
||||
class Meta:
|
||||
ordering = ['plug', 'socket', '-circuits']
|
||||
unique_together = ['plug', 'socket', 'circuits', 'cores']
|
||||
|
||||
def __str__(self):
|
||||
if self.plug and self.socket:
|
||||
|
||||
Reference in New Issue
Block a user