mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-29 17:00:02 +02:00
Add has change perm
This commit is contained in:
parent
d33cc1c8cc
commit
b942d34892
1 changed files with 5 additions and 0 deletions
|
@ -1408,6 +1408,11 @@ class DomainInformationInline(admin.StackedInline):
|
||||||
"submitter",
|
"submitter",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
def has_change_permission(self, request, obj=None):
|
||||||
|
if request.user.has_perm("registrar.analyst_access_permission"):
|
||||||
|
return True
|
||||||
|
return super().has_change_permission(request, obj)
|
||||||
|
|
||||||
def formfield_for_manytomany(self, db_field, request, **kwargs):
|
def formfield_for_manytomany(self, db_field, request, **kwargs):
|
||||||
"""customize the behavior of formfields with manytomany relationships. the customized
|
"""customize the behavior of formfields with manytomany relationships. the customized
|
||||||
behavior includes sorting of objects in lists as well as customizing helper text"""
|
behavior includes sorting of objects in lists as well as customizing helper text"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue