forked from rapidpro/rapidpro
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use temba.orgs.models.User consistently
- Loading branch information
1 parent
6289531
commit 0fbb678
Showing
8 changed files
with
69 additions
and
11 deletions.
There are no files selected for viewing
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
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
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
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
41 changes: 41 additions & 0 deletions
41
temba/msgs/migrations/0276_alter_broadcast_created_by_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,41 @@ | ||
# Generated by Django 5.1.2 on 2024-11-19 21:36 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("msgs", "0275_alter_broadcast_status"), | ||
("orgs", "0159_usersettings_is_system"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="broadcast", | ||
name="created_by", | ||
field=models.ForeignKey( | ||
null=True, on_delete=django.db.models.deletion.PROTECT, related_name="+", to="orgs.user" | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="broadcast", | ||
name="modified_by", | ||
field=models.ForeignKey( | ||
null=True, on_delete=django.db.models.deletion.PROTECT, related_name="+", to="orgs.user" | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="media", | ||
name="created_by", | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to="orgs.user"), | ||
), | ||
migrations.AlterField( | ||
model_name="msg", | ||
name="created_by", | ||
field=models.ForeignKey( | ||
db_index=False, null=True, on_delete=django.db.models.deletion.PROTECT, to="orgs.user" | ||
), | ||
), | ||
] |
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
22 changes: 22 additions & 0 deletions
22
temba/notifications/migrations/0029_alter_notification_user.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,22 @@ | ||
# Generated by Django 5.1.2 on 2024-11-19 21:36 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("notifications", "0028_delete_notificationcount"), | ||
("orgs", "0159_usersettings_is_system"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="notification", | ||
name="user", | ||
field=models.ForeignKey( | ||
on_delete=django.db.models.deletion.PROTECT, related_name="notifications", to="orgs.user" | ||
), | ||
), | ||
] |
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