OpenDroneMap-WebODM/nodeodm/admin.py

10 wiersze
253 B
Python

from django.contrib import admin
from guardian.admin import GuardedModelAdmin
from .models import ProcessingNode
class ProcessingNodeAdmin(GuardedModelAdmin):
fields = ('hostname', 'port')
admin.site.register(ProcessingNode, ProcessingNodeAdmin)