Adds edited field to status model

This commit is contained in:
Mouse Reeve 2021-10-14 17:33:04 -07:00
parent 2d1052766d
commit 175df2181c
2 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,18 @@
# Generated by Django 3.2.5 on 2021-10-15 00:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("bookwyrm", "0108_alter_user_preferred_language"),
]
operations = [
migrations.AddField(
model_name="status",
name="edited",
field=models.BooleanField(default=False),
),
]

View file

@ -43,6 +43,7 @@ class Status(OrderedCollectionPageMixin, BookWyrmModel):
published_date = fields.DateTimeField( published_date = fields.DateTimeField(
default=timezone.now, activitypub_field="published" default=timezone.now, activitypub_field="published"
) )
edited = models.BooleanField(default=False)
deleted = models.BooleanField(default=False) deleted = models.BooleanField(default=False)
deleted_date = models.DateTimeField(blank=True, null=True) deleted_date = models.DateTimeField(blank=True, null=True)
favorites = models.ManyToManyField( favorites = models.ManyToManyField(