summaryrefslogtreecommitdiffstats
path: root/mirrors
diff options
context:
space:
mode:
Diffstat (limited to 'mirrors')
-rw-r--r--mirrors/migrations/0028_auto__add_field_mirror_last_modified.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mirrors/migrations/0028_auto__add_field_mirror_last_modified.py b/mirrors/migrations/0028_auto__add_field_mirror_last_modified.py
index dbd4b12..35e8073 100644
--- a/mirrors/migrations/0028_auto__add_field_mirror_last_modified.py
+++ b/mirrors/migrations/0028_auto__add_field_mirror_last_modified.py
@@ -11,7 +11,8 @@ class Migration(SchemaMigration):
db.add_column(u'mirrors_mirror', 'last_modified',
self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now()),
keep_default=False)
- orm.Mirror.objects.update(last_modified=models.F('created'))
+ if not db.dry_run:
+ orm.Mirror.objects.update(last_modified=models.F('created'))
def backwards(self, orm):
db.delete_column(u'mirrors_mirror', 'last_modified')