Skip to content

Commit

Permalink
Merge branch 'NES-1032' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Cassiano R. N. dos Santos committed Oct 6, 2020
2 parents 61e3988 + 6c8dba5 commit a13d225
Show file tree
Hide file tree
Showing 25 changed files with 1,402 additions and 1,122 deletions.
39 changes: 25 additions & 14 deletions patientregistrationsystem/qdc/add_initial_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,20 +215,31 @@
group_physiotherapist, physiotherapist_created = Group.objects.get_or_create(name='Physiotherapist')

physiotherapist_permission_list = list(attendant_permission_list)
physiotherapist_permission_list += [Permission.objects.get(codename='view_medicalrecorddata',
content_type=medicalrecorddata_content_type),
Permission.objects.get(codename='view_survey', content_type=survey_content_type),
Permission.objects.get(codename='add_survey', content_type=survey_content_type),
Permission.objects.get(codename='change_survey', content_type=survey_content_type),
Permission.objects.get(codename='delete_survey', content_type=survey_content_type),
Permission.objects.get(codename='add_questionnaireresponse',
content_type=patient_quest_response_content_type),
Permission.objects.get(codename='change_questionnaireresponse',
content_type=patient_quest_response_content_type),
Permission.objects.get(codename='view_questionnaireresponse',
content_type=patient_quest_response_content_type),
Permission.objects.get(codename='delete_questionnaireresponse',
content_type=patient_quest_response_content_type)]
physiotherapist_permission_list += [
Permission.objects.get(
codename='view_medicalrecorddata',
content_type=medicalrecorddata_content_type),
Permission.objects.get(
codename='view_survey', content_type=survey_content_type),
Permission.objects.get(
codename='add_survey', content_type=survey_content_type),
Permission.objects.get(
codename='change_survey', content_type=survey_content_type),
Permission.objects.get(
codename='delete_survey', content_type=survey_content_type),
Permission.objects.get(
codename='add_questionnaireresponse',
content_type=patient_quest_response_content_type),
Permission.objects.get(
codename='change_questionnaireresponse',
content_type=patient_quest_response_content_type),
Permission.objects.get(
codename='view_questionnaireresponse',
content_type=patient_quest_response_content_type),
Permission.objects.get(
codename='delete_questionnaireresponse',
content_type=patient_quest_response_content_type)
]

for permission in physiotherapist_permission_list:
group_physiotherapist.permissions.add(permission)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-08-31 16:04-0300\n"
"POT-Creation-Date: 2020-10-06 14:31-0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down
Binary file not shown.
Loading

0 comments on commit a13d225

Please sign in to comment.