From 936513d1f203c255a99ccd74d702b12b2d37486f Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sat, 1 Oct 2022 09:28:59 +0200 Subject: [PATCH] Remove unused field on attachments --- .../0009_remove_attachment_updated_at.py | 17 +++++++++++++++++ src/attachments/models.py | 1 - 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 src/attachments/migrations/0009_remove_attachment_updated_at.py diff --git a/src/attachments/migrations/0009_remove_attachment_updated_at.py b/src/attachments/migrations/0009_remove_attachment_updated_at.py new file mode 100644 index 0000000..c4d2452 --- /dev/null +++ b/src/attachments/migrations/0009_remove_attachment_updated_at.py @@ -0,0 +1,17 @@ +# Generated by Django 4.1.1 on 2022-10-01 07:28 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ("attachments", "0008_attachment_updated_at"), + ] + + operations = [ + migrations.RemoveField( + model_name="attachment", + name="updated_at", + ), + ] diff --git a/src/attachments/models.py b/src/attachments/models.py index 5505af0..3d31a40 100644 --- a/src/attachments/models.py +++ b/src/attachments/models.py @@ -36,7 +36,6 @@ class Attachment(models.Model): original_file = AbsoluteUrlFileField() processed_file = AbsoluteUrlFileField(blank=True, null=True) open_graph_image = models.BooleanField(blank=True, default=False) - updated_at = models.DateTimeField(auto_now=True) objects = AttachmentManager()