mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 21:27:49 +02:00
16 lines
429 B
Python
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"
|