Commit 543b883a by Bach Dániel

firewall: add SwitchPort, EthernetDevice to admin

parent e685d5d6
......@@ -2,7 +2,8 @@
from django.contrib import admin
from firewall.models import (Rule, Host, Vlan, Group, VlanGroup, Firewall,
Domain, Record, Blacklist)
Domain, Record, Blacklist,
SwitchPort, EthernetDevice)
from django import contrib
......@@ -111,6 +112,14 @@ class RecordAdmin(admin.ModelAdmin):
class BlacklistAdmin(admin.ModelAdmin):
list_display = ('ipv4', 'reason', 'created_at', 'modified_at')
class SwitchPortAdmin(admin.ModelAdmin):
list_display = ()
class EthernetDeviceAdmin(admin.ModelAdmin):
list_display = ('name', ), HostAdmin), VlanAdmin), RuleAdmin)
......@@ -120,3 +129,5 @@, FirewallAdmin), DomainAdmin), RecordAdmin), BlacklistAdmin), EthernetDeviceAdmin)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment