Skip to content

Commit

Permalink
Delete Translation.source_last_updated_at
Browse files Browse the repository at this point in the history
This field isn't used, or updated. It was accidentally left over from a
previous refactoring.

Users should use ``Translation.source.last_updated_at`` instead.
  • Loading branch information
kaedroho committed Sep 27, 2021
1 parent d8fb8f9 commit fb488b9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 3.2.6 on 2021-09-14 08:53

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('wagtail_localize', '0013_translationsource_schema_version'),
]

operations = [
migrations.RemoveField(
model_name='translation',
name='source_last_updated_at',
),
]
1 change: 0 additions & 1 deletion wagtail_localize/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,6 @@ class Translation(models.Model):
)

created_at = models.DateTimeField(auto_now_add=True)
source_last_updated_at = models.DateTimeField(auto_now_add=True)
translations_last_updated_at = models.DateTimeField(null=True)
destination_last_updated_at = models.DateTimeField(null=True)
enabled = models.BooleanField(default=True)
Expand Down

0 comments on commit fb488b9

Please sign in to comment.