[damned-lies] Removed update_statistics arg from migration



commit 52b6774eea75aa03f777a629f51e0e85de5148d6
Author: Claude Paroz <claude 2xlibre net>
Date:   Sat Apr 17 15:55:36 2021 +0200

    Removed update_statistics arg from migration

 stats/migrations/0019_migrate_old_custom_files.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/stats/migrations/0019_migrate_old_custom_files.py 
b/stats/migrations/0019_migrate_old_custom_files.py
index 064ab872..79207d18 100644
--- a/stats/migrations/0019_migrate_old_custom_files.py
+++ b/stats/migrations/0019_migrate_old_custom_files.py
@@ -9,7 +9,7 @@ def migrate_figures(apps, schema_editor):
         file_.save()
     for branch in Branch.objects.exclude(file_hashes_old=''):
         branch.file_hashes = branch.file_hashes_old
-        branch.save(update_statistics=False)
+        branch.save()
 
 
 class Migration(migrations.Migration):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]