X-Git-Url: https://git.mdrn.pl/django-migdal.git/blobdiff_plain/476685a9de9b8380c5c8ee71d63d6d6020533926..402a579c119c6494404699aa6e21b16579ca278b:/migdal/migrations/0006_auto__add_field_entry_in_stream__add_field_entry_first_published_at.py diff --git a/migdal/migrations/0006_auto__add_field_entry_in_stream__add_field_entry_first_published_at.py b/migdal/migrations/0006_auto__add_field_entry_in_stream__add_field_entry_first_published_at.py index 8686f62..0153811 100644 --- a/migdal/migrations/0006_auto__add_field_entry_in_stream__add_field_entry_first_published_at.py +++ b/migdal/migrations/0006_auto__add_field_entry_in_stream__add_field_entry_first_published_at.py @@ -27,7 +27,8 @@ class Migration(SchemaMigration): else: entry.first_published_at = ( entry.published_at_en or entry.published_at_pl) - entry.save() + orm.Entry.objects.filter(pk=entry.pk).update( + first_published_at=entry.first_published_at) def backwards(self, orm): # Deleting field 'Entry.in_stream'