mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-08-26 21:31:14 +00:00
add DNS Filter List management functionality
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from django.db import models
|
||||
import uuid
|
||||
|
||||
from django.db import models
|
||||
|
||||
|
||||
class DNSSettings(models.Model):
|
||||
name = models.CharField(default='dns_settings', max_length=100)
|
||||
@@ -23,3 +24,19 @@ class StaticHost(models.Model):
|
||||
|
||||
def __str__(self):
|
||||
return self.hostname
|
||||
|
||||
|
||||
class DNSFilterList(models.Model):
|
||||
name = models.SlugField(max_length=100, unique=True)
|
||||
description = models.CharField(max_length=100)
|
||||
enabled = models.BooleanField(default=False)
|
||||
list_url = models.URLField()
|
||||
last_updated = models.DateTimeField(blank=True, null=True)
|
||||
host_count = models.IntegerField(default=0)
|
||||
|
||||
created = models.DateTimeField(auto_now_add=True)
|
||||
updated = models.DateTimeField(auto_now=True)
|
||||
uuid = models.UUIDField(unique=True, default=uuid.uuid4, editable=False)
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
Reference in New Issue
Block a user