Allow subscribe to orgs
This commit is contained in:
parent
fabc9d23f6
commit
4af2b02a01
10 changed files with 190 additions and 14 deletions
|
|
@ -0,0 +1,34 @@
|
|||
# Generated by Django 5.2.4 on 2025-08-02 03:39
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('twitch', '0002_notificationsubscription'),
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterUniqueTogether(
|
||||
name='notificationsubscription',
|
||||
unique_together={('user', 'game')},
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='notificationsubscription',
|
||||
name='organization',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='twitch.organization'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='notificationsubscription',
|
||||
name='game',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='twitch.game'),
|
||||
),
|
||||
migrations.AlterUniqueTogether(
|
||||
name='notificationsubscription',
|
||||
unique_together={('user', 'game'), ('user', 'organization')},
|
||||
),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue