null not needed

This commit is contained in:
Corban-Lee Jones 2024-05-22 16:24:46 +01:00
parent 42df9daf56
commit 42aa9a517c
2 changed files with 19 additions and 2 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 5.0.1 on 2024-05-07 09:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0020_remove_savedguilds_unique_name_guild_id_pair_and_more'),
]
operations = [
migrations.AlterField(
model_name='subscription',
name='filters',
field=models.ManyToManyField(to='home.filter'),
),
]

View File

@ -216,7 +216,7 @@ class Subscription(models.Model):
blank=True,
)
filters = models.ManyToManyField(to="home.Filter", null=True, blank=True)
filters = models.ManyToManyField(to="home.Filter", blank=True)
active = models.BooleanField(
default=True,
@ -246,4 +246,3 @@ class Subscription(models.Model):
new_text = "New " if self._state.adding else ""
log.debug("%sSubscription Saved %s", new_text, self.id)
super().save(*args, **kwargs)