mirror of
https://github.com/peeringdb/peeringdb.git
synced 2024-05-11 05:55:09 +00:00
Fix 628 cp ixlan search (#630)
* fixes bug in the ixlan migration script during reparenting of extra ixlans that would result in ixfacs to be copied with the wrong status. (#21) * ixlan view in /cp should take ix name into account for search (#628)
This commit is contained in:
@@ -570,7 +570,7 @@ class IXLanAdminForm(StatusForm):
|
||||
class IXLanAdmin(SoftDeleteAdmin):
|
||||
actions = []
|
||||
list_display = ("ix", "name", "descr", "status")
|
||||
search_fields = ("name",)
|
||||
search_fields = ("name", "ix__name")
|
||||
list_filter = (StatusFilter,)
|
||||
readonly_fields = ("id",)
|
||||
inlines = (IXLanPrefixInline, NetworkInternetExchangeInline)
|
||||
|
@@ -267,7 +267,7 @@ class Command(BaseCommand):
|
||||
|
||||
for ixfac in ix.ixfac_set_active:
|
||||
ixfac_copy = InternetExchangeFacility(
|
||||
ix=new_ix, facility=ixfac.facility, status=ixfac.status
|
||||
ix=new_ix, facility=ixfac.facility, status=new_ix.status
|
||||
)
|
||||
if self.commit:
|
||||
ixfac_copy.save()
|
||||
|
Reference in New Issue
Block a user