mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-19 02:49:21 +02:00
Add instructions for user group migrations
This commit is contained in:
parent
d0d312598d
commit
c25a082aa0
1 changed files with 11 additions and 1 deletions
|
@ -5,6 +5,16 @@ logger = logging.getLogger(__name__)
|
|||
|
||||
|
||||
class UserGroup(Group):
|
||||
"""
|
||||
UserGroup sets read and write permissions for superusers (who have full access)
|
||||
and analysts. To update analyst permissions do the following:
|
||||
1. Make desired changes to analyst group permissions in user_group.py.
|
||||
2. Follow the steps in 0037_create_groups_v01.py to create a duplicate
|
||||
migration for the updated user group permissions.
|
||||
3. To migrate locally, run docker-compose up. To migrate on a sandbox,
|
||||
push the new migration onto your sandbox before migrating.
|
||||
"""
|
||||
|
||||
class Meta:
|
||||
verbose_name = "User group"
|
||||
verbose_name_plural = "User groups"
|
||||
|
@ -49,7 +59,7 @@ class UserGroup(Group):
|
|||
{
|
||||
"app_label": "registrar",
|
||||
"model": "user",
|
||||
"permissions": ["analyst_access_permission", "change_user"],
|
||||
"permissions": ["analyst_access_permission", "change_user", "delete_user"],
|
||||
},
|
||||
{
|
||||
"app_label": "registrar",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue