Remove import/export resource for domain group and suborg admin classes

This commit is contained in:
Erin 2024-06-24 10:28:28 -07:00
parent 60bbf5f0fc
commit 69b81ba6d6
No known key found for this signature in database
GPG key ID: 1CAD275313C62460

View file

@ -2656,29 +2656,11 @@ class WaffleFlagAdmin(FlagAdmin):
fields = "__all__"
class DomainGroupResource(resources.ModelResource):
"""defines how each field in the referenced model should be mapped to the corresponding fields in the
import/export file"""
class Meta:
model = models.DomainGroup
class DomainGroupAdmin(ListHeaderAdmin, ImportExportModelAdmin):
resource_classes = [DomainGroupResource]
list_display = ["name", "portfolio"]
class SuborganizationResource(resources.ModelResource):
"""defines how each field in the referenced model should be mapped to the corresponding fields in the
import/export file"""
class Meta:
model = models.Suborganization
class SuborganizationAdmin(ListHeaderAdmin, ImportExportModelAdmin):
resource_classes = [SuborganizationResource]
list_display = ["name", "portfolio"]