mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 13:17:50 +02:00
30 lines
673 B
Python
30 lines
673 B
Python
from django.contrib import admin
|
|
from solo.admin import SingletonModelAdmin
|
|
|
|
from driver.models import DriverConfiguration
|
|
|
|
|
|
@admin.register(DriverConfiguration)
|
|
class DriverConfigurationAdmin(SingletonModelAdmin):
|
|
fieldsets = (
|
|
(
|
|
"Remote DCC-EX configuration",
|
|
{
|
|
"fields": (
|
|
"remote_host",
|
|
"remote_port",
|
|
"timeout",
|
|
)
|
|
},
|
|
),
|
|
(
|
|
"Firewall setting",
|
|
{
|
|
"fields": (
|
|
"network",
|
|
"subnet_mask",
|
|
)
|
|
},
|
|
),
|
|
)
|