-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove OneToOne user, add unique_together user and opportunity on Opp…
…ortunity Access
- Loading branch information
1 parent
d1189c2
commit 7cbce7e
Showing
2 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
commcare_connect/opportunity/migrations/0016_alter_opportunityaccess_user_and_more.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,24 @@ | ||
# Generated by Django 4.2.3 on 2023-09-12 05:21 | ||
|
||
from django.conf import settings | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
("opportunity", "0015_remove_opportunityaccess_date_claimed"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="opportunityaccess", | ||
name="user", | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), | ||
), | ||
migrations.AlterUniqueTogether( | ||
name="opportunityaccess", | ||
unique_together={("user", "opportunity")}, | ||
), | ||
] |
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