MICROBA-1011 | Remove duplicate allowlist entries and add constraint to model...
MICROBA-1011 | Remove duplicate allowlist entries and add constraint to model to prevent future occurrences [MICROBA-1011] - Add data migration to remove the duplicate certificate allowlist entries before adding the new constraint to the CertificateWhitelist model. - Add `unique_together` constraint to the CertificateWhitelist model. A learner should only have a single allowlist entry per course-run.
Showing
- lms/djangoapps/certificates/migrations/0021_remove_certificate_allowlist_duplicate_records.py 36 additions, 0 deletions...ns/0021_remove_certificate_allowlist_duplicate_records.py
- lms/djangoapps/certificates/migrations/0022_add_unique_constraints_to_certificatewhitelist_model.py 19 additions, 0 deletions...2_add_unique_constraints_to_certificatewhitelist_model.py
- lms/djangoapps/certificates/models.py 1 addition, 0 deletionslms/djangoapps/certificates/models.py
- lms/djangoapps/certificates/tests/test_signals.py 22 additions, 2 deletionslms/djangoapps/certificates/tests/test_signals.py
Loading
Please register or sign in to comment