mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 01:57:03 +02:00
Remove import/export resource for domain group and suborg admin classes
This commit is contained in:
parent
60bbf5f0fc
commit
69b81ba6d6
1 changed files with 0 additions and 18 deletions
|
@ -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"]
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue