forked from mirrors/bookwyrm
Adds missing migration for reports model
This commit is contained in:
parent
b64fb3e0aa
commit
848edd2972
2 changed files with 27 additions and 1 deletions
26
bookwyrm/migrations/0050_auto_20210313_0030.py
Normal file
26
bookwyrm/migrations/0050_auto_20210313_0030.py
Normal file
|
@ -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"),
|
||||
),
|
||||
]
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue