mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-07-12 19:34:32 +02:00
User and permission management
This commit is contained in:
parent
3177eb2b8d
commit
f036daf779
10 changed files with 296 additions and 10 deletions
|
@ -1,6 +1,6 @@
|
|||
from django.db import models
|
||||
from django.contrib.auth.models import User
|
||||
# Create your models here.
|
||||
import uuid
|
||||
|
||||
|
||||
class UserAcl(models.Model):
|
||||
|
@ -11,8 +11,11 @@ class UserAcl(models.Model):
|
|||
(30, 'Peer Manager'),
|
||||
(40, 'Wireguard Manager'),
|
||||
(50, 'Administrator'),
|
||||
|
||||
))
|
||||
|
||||
created = models.DateTimeField(auto_now_add=True)
|
||||
updated = models.DateTimeField(auto_now=True)
|
||||
uuid = models.UUIDField(primary_key=True, editable=False, default=uuid.uuid4)
|
||||
|
||||
def __str__(self):
|
||||
return self.user.username
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue