Files
django-ram/dcc/driver/models.py
2022-04-02 22:58:55 +02:00

17 lines
434 B
Python

from django.db import models
from solo.models import SingletonModel
class DriverConfiguration(SingletonModel):
remote_host = models.GenericIPAddressField(
protocol="IPv4", default="192.168.4.1"
)
remote_port = models.SmallIntegerField(default=2560)
timeout = models.SmallIntegerField(default=250)
def __str__(self):
return "Configuration"
class Meta:
verbose_name = "Configuration"