mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-02-20 11:36:18 +00:00
Add peer scheduling profile management functionality
This commit is contained in:
@@ -22,6 +22,9 @@ class ScheduleProfile(models.Model):
|
||||
updated = models.DateTimeField(auto_now=True)
|
||||
uuid = models.UUIDField(editable=False, default=uuid.uuid4)
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
|
||||
class ScheduleSlot(models.Model):
|
||||
profile = models.ForeignKey(ScheduleProfile, on_delete=models.CASCADE, related_name="time_interval")
|
||||
|
||||
Reference in New Issue
Block a user