mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-21 10:16:13 +02:00
wip
This commit is contained in:
parent
15489a71e2
commit
4344810107
2 changed files with 61 additions and 43 deletions
|
@ -117,6 +117,11 @@ class ListHeaderAdmin(AuditedAdmin):
|
|||
)
|
||||
return filters
|
||||
|
||||
# customize the help_text for all formfields for manytomany
|
||||
def formfield_for_manytomany(self, db_field, request, **kwargs):
|
||||
formfield = super().formfield_for_manytomany(db_field, request, **kwargs)
|
||||
formfield.help_text = formfield.help_text + " If more than one value is selected, the change/delete/view actions will be disabled."
|
||||
return formfield
|
||||
|
||||
class UserContactInline(admin.StackedInline):
|
||||
"""Edit a user's profile on the user page."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue