-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from openimis/hotfix/24.10
Hotfix/24.10: admin migration add rights for persons covered search tab
- Loading branch information
Showing
2 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Generated by Django 4.2.16 on 2024-10-07 12:10 | ||
import logging | ||
|
||
from django.db import migrations | ||
|
||
from core.utils import insert_role_right_for_system, remove_role_right_for_system | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
def add_rights(apps, schema_editor): | ||
insert_role_right_for_system(64, 101500, apps) | ||
insert_role_right_for_system(64, 154901, apps) | ||
|
||
def remove_rights(apps, schema_editor): | ||
remove_role_right_for_system(64, 101500, apps) | ||
remove_role_right_for_system(64, 154901, apps) | ||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('contract', '0021_alter_contract_date_created_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.RunPython(add_rights, reverse_code=remove_rights), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters