Fix lint errors

This commit is contained in:
Erin 2024-06-20 14:43:22 -07:00
parent 0a80cb1c62
commit a2a43b66b4
No known key found for this signature in database
GPG key ID: 1CAD275313C62460
4 changed files with 10 additions and 10 deletions

View file

@ -2655,6 +2655,7 @@ class WaffleFlagAdmin(FlagAdmin):
model = models.WaffleFlag
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"""
@ -2662,10 +2663,12 @@ class DomainGroupResource(resources.ModelResource):
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"""
@ -2673,10 +2676,12 @@ class SuborganizationResource(resources.ModelResource):
class Meta:
model = models.Suborganization
class SuborganizationAdmin(ListHeaderAdmin, ImportExportModelAdmin):
resource_classes = [SuborganizationResource]
list_display = ["name", "portfolio"]
admin.site.unregister(LogEntry) # Unregister the default registration
admin.site.register(LogEntry, CustomLogEntryAdmin)