From 175df2181cb832f8bf0e2ff3367a7a4fdc8c72c4 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 14 Oct 2021 17:33:04 -0700 Subject: [PATCH] Adds edited field to status model --- bookwyrm/migrations/0109_status_edited.py | 18 ++++++++++++++++++ bookwyrm/models/status.py | 1 + 2 files changed, 19 insertions(+) create mode 100644 bookwyrm/migrations/0109_status_edited.py 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(