-
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 #293 from edx/varshamenon4/feat-course-staff-role-…
…unique-constraint feat: add unique constraint to coursestaffrole
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
edx_exams/apps/core/migrations/0027_coursestaffrole_unique_course_staff_role.py
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,17 @@ | ||
# Generated by Django 4.2.14 on 2024-07-24 14:58 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('core', '0026_studentallowance'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddConstraint( | ||
model_name='coursestaffrole', | ||
constraint=models.UniqueConstraint(fields=('user', 'course_id', 'role'), name='unique_course_staff_role'), | ||
), | ||
] |
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