Change Router address field size from 15 to 100 chars.

This commit is contained in:
Eduardo Silva 2024-04-05 18:43:23 -03:00
parent 67a720f6a2
commit 5b289a011d
2 changed files with 19 additions and 1 deletions

View file

@ -19,7 +19,7 @@ class SSHKey(models.Model):
class Router(models.Model):
name = models.CharField(max_length=100, unique=True)
internal_notes = models.TextField(null=True, blank=True)
address = models.CharField(max_length=15)
address = models.CharField(max_length=100)
username = models.CharField(max_length=100, default='admin')
password = models.CharField(max_length=100, null=True, blank=True)
ssh_key = models.ForeignKey(SSHKey, on_delete=models.SET_NULL, null=True, blank=True)