Files
django-ram/dcc/driver/models.py

16 lines
429 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"