|
@@ -265,6 +265,7 @@ class InactiveAntennaAllocationInline(AntennaAllocationMixin, InactiveAllocation
|
|
|
|
|
|
class PortInline(admin.TabularInline):
|
|
|
model = Port
|
|
|
+ max_num = 0
|
|
|
|
|
|
def has_add_permission(self, request):
|
|
|
return False
|
|
@@ -287,7 +288,6 @@ class SwitchPortInline(PortInline):
|
|
|
class ServicePortInline(PortInline):
|
|
|
fields = ('switch', 'port', 'up', 'notes',)
|
|
|
readonly_fields = ('switch', 'port', 'up',)
|
|
|
- max_num = 0
|
|
|
|
|
|
|
|
|
### Actions
|