From 848edd29726dff04c581c1f0dae571441132e8a8 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Fri, 12 Mar 2021 16:31:46 -0800 Subject: [PATCH] Adds missing migration for reports model --- .../migrations/0050_auto_20210313_0030.py | 26 +++++++++++++++++++ bookwyrm/models/report.py | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 bookwyrm/migrations/0050_auto_20210313_0030.py diff --git a/bookwyrm/migrations/0050_auto_20210313_0030.py b/bookwyrm/migrations/0050_auto_20210313_0030.py new file mode 100644 index 000000000..8c81c452b --- /dev/null +++ b/bookwyrm/migrations/0050_auto_20210313_0030.py @@ -0,0 +1,26 @@ +# Generated by Django 3.0.7 on 2021-03-13 00:30 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("bookwyrm", "0049_auto_20210309_0156"), + ] + + operations = [ + migrations.AlterModelOptions( + name="report", + options={"ordering": ("-created_date",)}, + ), + migrations.AlterModelOptions( + name="reportcomment", + options={"ordering": ("-created_date",)}, + ), + migrations.AlterField( + model_name="report", + name="statuses", + field=models.ManyToManyField(blank=True, to="bookwyrm.Status"), + ), + ] diff --git a/bookwyrm/models/report.py b/bookwyrm/models/report.py index a1e17eb2f..6a76d9fd2 100644 --- a/bookwyrm/models/report.py +++ b/bookwyrm/models/report.py @@ -12,7 +12,7 @@ class Report(BookWyrmModel): ) note = models.TextField(null=True, blank=True) user = models.ForeignKey("User", on_delete=models.PROTECT) - statuses = models.ManyToManyField("Status", null=True, blank=True) + statuses = models.ManyToManyField("Status", blank=True) resolved = models.BooleanField(default=False) class Meta: