mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-16 01:27:03 +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
|
# customize the help_text for all formfields for manytomany
|
||||||
def formfield_for_manytomany(self, db_field, request, **kwargs):
|
def formfield_for_manytomany(self, db_field, request, **kwargs):
|
||||||
formfield = super().formfield_for_manytomany(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
|
return formfield
|
||||||
|
|
||||||
|
|
||||||
class UserContactInline(admin.StackedInline):
|
class UserContactInline(admin.StackedInline):
|
||||||
"""Edit a user's profile on the user page."""
|
"""Edit a user's profile on the user page."""
|
||||||
|
|
||||||
|
|
|
@ -533,6 +533,7 @@ class DomainApplication(TimeStampedModel):
|
||||||
"registrar.Contact",
|
"registrar.Contact",
|
||||||
blank=True,
|
blank=True,
|
||||||
related_name="contact_applications",
|
related_name="contact_applications",
|
||||||
|
verbose_name="contacts",
|
||||||
)
|
)
|
||||||
|
|
||||||
no_other_contacts_rationale = models.TextField(
|
no_other_contacts_rationale = models.TextField(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue