mirror of
https://github.com/peeringdb/peeringdb.git
synced 2024-05-11 05:55:09 +00:00
Gh 761 (#819)
* Make in_dfz a readonly field * add migrations for in_dfz noop, add validation error when trying to set in_dfz to false over api fix template layout * remove in_dfz from ixlanprefixinline admin * fix error message * black formatted Co-authored-by: egfrank <elliot@20c.com> Co-authored-by: Stefan Pratter <stefan@20c.com>
This commit is contained in:
@ -432,6 +432,7 @@ class IXLanPrefixInline(SanitizedAdmin, admin.TabularInline):
|
||||
model = IXLanPrefix
|
||||
extra = 0
|
||||
form = IXLanPrefixForm
|
||||
fields = ["status", "protocol", "prefix"]
|
||||
|
||||
|
||||
class IXLanInline(SanitizedAdmin, admin.StackedInline):
|
||||
@ -988,7 +989,7 @@ class InternetExchangeFacilityAdmin(SoftDeleteAdmin):
|
||||
|
||||
class IXLanPrefixAdmin(SoftDeleteAdmin):
|
||||
list_display = ("id", "prefix", "ixlan", "ix", "status", "created", "updated")
|
||||
readonly_fields = ("ix", "id")
|
||||
readonly_fields = ("ix", "id", "in_dfz")
|
||||
search_fields = ("ixlan__name", "ixlan__ix__name", "prefix")
|
||||
list_filter = (StatusFilter,)
|
||||
form = IXLanPrefixForm
|
||||
|
Reference in New Issue
Block a user