summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chimere/migrations/0037_recopy_marker_to_route.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/chimere/migrations/0037_recopy_marker_to_route.py b/chimere/migrations/0037_recopy_marker_to_route.py
index c1d6b35..82dbc9d 100644
--- a/chimere/migrations/0037_recopy_marker_to_route.py
+++ b/chimere/migrations/0037_recopy_marker_to_route.py
@@ -9,7 +9,6 @@ class Migration(SchemaMigration):
def forwards(self, orm):
nb = 0
- nb_del = 0
for m in orm['chimere.Marker'].objects.filter(
route__isnull=False).all():
route = m.route
@@ -38,10 +37,7 @@ class Migration(SchemaMigration):
for mod in modified:
print(mod)
route.save()
- nb_del += 1
- m.delete()
print("{} elements deplaces".format(nb))
- print("{} elements sup".format(nb_del))
def backwards(self, orm):
pass