care
care copied to clipboard
Bugs in `populate investigations` command
Describe the bug
- when running this command the groups are created again and again.
- No many to many relationships are set up and the relationship table is empty.
To Reproduce Steps to reproduce the behavior:
- run
python manage.py populate_investigations - Go to database and see the entries in the
facility_patientinvestigation_groupstable, you'll find there are no entries - run the above command multiple times ,
facility_patientinvestigationgroupstable will have duplicate values created
Expected behavior
- many to many relationship table should have the valid data
- No duplication of data