mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-15 17:17:02 +02:00
updated helper_text in admin for multi selects; formatted for linter
This commit is contained in:
parent
8ddd5e7b1f
commit
2c355353b6
2 changed files with 6 additions and 1 deletions
|
@ -120,9 +120,13 @@ class ListHeaderAdmin(AuditedAdmin):
|
|||
# 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."
|
||||
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