fnp
/
django-migdal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add inline html
[django-migdal.git]
/
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
(file)
--- 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)
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'
def backwards(self, orm):
# Deleting field 'Entry.in_stream'