diff --git a/src/registrar/admin.py b/src/registrar/admin.py index 174500f28..8d0ed8c2e 100644 --- a/src/registrar/admin.py +++ b/src/registrar/admin.py @@ -342,6 +342,12 @@ class DomainInvitationAdmin(ListHeaderAdmin): ] search_help_text = "Search by email or domain." + # Mark the FSM field 'status' as readonly + # to allow admin users to create Domain Invitations + # without triggering the FSM Transition Not Allowed + # error. + readonly_fields = ["status"] + class DomainInformationAdmin(ListHeaderAdmin): """Customize domain information admin class.""" diff --git a/src/registrar/migrations/0037_create_groups_v01.py b/src/registrar/migrations/0037_create_groups_v01.py index 69a4c02aa..3540ea2f3 100644 --- a/src/registrar/migrations/0037_create_groups_v01.py +++ b/src/registrar/migrations/0037_create_groups_v01.py @@ -8,7 +8,8 @@ # step 3: fake run the latest migration in the migrations list # [RECOMMENDED] # Alternatively: -# Only step: duplicate the migration that loads data and run: docker-compose exec app ./manage.py migrate +# step 1: duplicate the migration that loads data +# step 2: docker-compose exec app ./manage.py migrate from django.db import migrations from registrar.models import UserGroup diff --git a/src/registrar/migrations/0038_create_groups_v02.py b/src/registrar/migrations/0038_create_groups_v02.py index 80752f31a..fc61db3c0 100644 --- a/src/registrar/migrations/0038_create_groups_v02.py +++ b/src/registrar/migrations/0038_create_groups_v02.py @@ -8,7 +8,8 @@ # step 3: fake run the latest migration in the migrations list # [RECOMMENDED] # Alternatively: -# Only step: duplicate the migration that loads data and run: docker-compose exec app ./manage.py migrate +# step 1: duplicate the migration that loads data +# step 2: docker-compose exec app ./manage.py migrate from django.db import migrations from registrar.models import UserGroup diff --git a/src/registrar/tests/test_migrations.py b/src/registrar/tests/test_migrations.py index 14ab36e70..2ea1962a1 100644 --- a/src/registrar/tests/test_migrations.py +++ b/src/registrar/tests/test_migrations.py @@ -31,7 +31,8 @@ class TestGroups(TestCase): UserGroup.objects.filter(name="full_access_group"), [full_access_group] ) - # Test permissions data migrations for cisa_analysts_group ran as expected + # Test data migrations for cisa_analysts_group permission + # ran as expected. # Define the expected permission codenames expected_permissions = [ "view_logentry", @@ -43,7 +44,7 @@ class TestGroups(TestCase): "analyst_access_permission", "change_user", "add_domaininvitation", - "view_domaininvitation" + "view_domaininvitation", ] # Get the codenames of actual permissions associated with the group