From 1d750714d14aa3974aefaa559d0d0c8101392bed Mon Sep 17 00:00:00 2001 From: Dennis Siemensma Date: Mon, 20 Nov 2023 21:51:50 +0100 Subject: [PATCH] Fix weird legacy migration code/error --- dsmr_frontend/migrations/0034_mysql_timezone_support.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dsmr_frontend/migrations/0034_mysql_timezone_support.py b/dsmr_frontend/migrations/0034_mysql_timezone_support.py index 2cacf7b87..196d2ec4a 100644 --- a/dsmr_frontend/migrations/0034_mysql_timezone_support.py +++ b/dsmr_frontend/migrations/0034_mysql_timezone_support.py @@ -16,8 +16,8 @@ def migrate_forward(apps, schema_editor): "SELECT CONVERT_TZ('2020-01-01 00:00:00', 'UTC', 'Europe/Amsterdam')" ) - if cursor.fetchone() is not None: - return + if cursor.fetchone() is not None: + return Notification = apps.get_model("dsmr_frontend", "Notification") Notification.objects.create(