mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-08-31 07:09:32 +02:00
Add sort_order field to Peer model and create a default order
This commit is contained in:
parent
0d374037b1
commit
6e22eafb05
4 changed files with 38 additions and 3 deletions
|
@ -80,6 +80,7 @@ class Peer(models.Model):
|
|||
private_key = models.CharField(max_length=100, blank=True, null=True)
|
||||
persistent_keepalive = models.IntegerField(default=25)
|
||||
wireguard_instance = models.ForeignKey(WireGuardInstance, on_delete=models.CASCADE)
|
||||
sort_order = models.IntegerField(default=0)
|
||||
|
||||
created = models.DateTimeField(auto_now_add=True)
|
||||
updated = models.DateTimeField(auto_now=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue