mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 21:27:49 +02:00
Add an option to completely disable driver
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
from django.db import models
|
||||
from django.core.exceptions import ValidationError
|
||||
from ipaddress import IPv4Address, IPv4Network
|
||||
from ipaddress import IPv4Network
|
||||
from solo.models import SingletonModel
|
||||
|
||||
|
||||
class DriverConfiguration(SingletonModel):
|
||||
enabled = models.BooleanField(default=False)
|
||||
remote_host = models.GenericIPAddressField(
|
||||
protocol="IPv4", default="192.168.4.1"
|
||||
)
|
||||
|
Reference in New Issue
Block a user