model/migration fix

This commit is contained in:
CocoByte 2024-06-21 13:32:33 -06:00
parent 1cb6dda7fb
commit 87a9a3f9d6
No known key found for this signature in database
GPG key ID: BBFAA2526384C97F
4 changed files with 9 additions and 22 deletions

View file

@ -1017,7 +1017,7 @@ class ContactAdmin(ListHeaderAdmin, ImportExportModelAdmin):
return super().changelist_view(request, extra_context=extra_context)
class SeniorOfficialAdmin(ListHeaderAdmin, ImportExportModelAdmin):
class SeniorOfficialAdmin(ListHeaderAdmin):
"""Custom Senior Official Admin class."""
# NOTE: these are just placeholders. Not part of ACs (haven't been defined yet). Update in future tickets.
@ -1031,13 +1031,6 @@ class SeniorOfficialAdmin(ListHeaderAdmin, ImportExportModelAdmin):
# in autocomplete_fields for user
ordering = ["first_name", "last_name"]
fieldsets = [
(
None,
{"fields": ["first_name", "last_name", "title", "phone"]},
)
]
class WebsiteResource(resources.ModelResource):
"""defines how each field in the referenced model should be mapped to the corresponding fields in the