diff --git a/bookwyrm/migrations/0109_status_edited.py b/bookwyrm/migrations/0109_status_edited.py new file mode 100644 index 000000000..58fda209e --- /dev/null +++ b/bookwyrm/migrations/0109_status_edited.py @@ -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), + ), + ] diff --git a/bookwyrm/models/status.py b/bookwyrm/models/status.py index 1325aa884..1027ecb58 100644 --- a/bookwyrm/models/status.py +++ b/bookwyrm/models/status.py @@ -43,6 +43,7 @@ class Status(OrderedCollectionPageMixin, BookWyrmModel): published_date = fields.DateTimeField( default=timezone.now, activitypub_field="published" ) + edited = models.BooleanField(default=False) deleted = models.BooleanField(default=False) deleted_date = models.DateTimeField(blank=True, null=True) favorites = models.ManyToManyField(