From 2e5a7c3b772b3cf53f4709dc7fac3ac0421c9531 Mon Sep 17 00:00:00 2001 From: Jorrit Schaap <schaap@astron.nl> Date: Tue, 11 Feb 2020 16:41:15 +0100 Subject: [PATCH] TMSS-142: use absolute paths --- SAS/TMSS/src/remakemigrations.py | 3 ++- SAS/TMSS/src/tmss/tmssapp/migrations/0003_populate.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/SAS/TMSS/src/remakemigrations.py b/SAS/TMSS/src/remakemigrations.py index 9decd35f5d7..18fa92e29f2 100755 --- a/SAS/TMSS/src/remakemigrations.py +++ b/SAS/TMSS/src/remakemigrations.py @@ -5,13 +5,14 @@ from glob import glob import subprocess as sp import logging + logger = logging.getLogger(__file__) here = os.path.dirname(__file__) relapath = '/tmss/tmssapp/migrations/' template = """ from django.db import migrations -from ..populate import * +from lofar.sas.tmss.tmss.tmssapp.populate import * class Migration(migrations.Migration): diff --git a/SAS/TMSS/src/tmss/tmssapp/migrations/0003_populate.py b/SAS/TMSS/src/tmss/tmssapp/migrations/0003_populate.py index 8fcea39a130..8eb2f3fdf60 100644 --- a/SAS/TMSS/src/tmss/tmssapp/migrations/0003_populate.py +++ b/SAS/TMSS/src/tmss/tmssapp/migrations/0003_populate.py @@ -9,4 +9,5 @@ class Migration(migrations.Migration): ('tmssapp', '0002_auto_20200123_1057'), ] - operations = [ migrations.RunPython(populate_choices) ] + operations = [ migrations.RunPython(populate_choices), + migrations.RunPython(populate_lofar_json_schemas) ] -- GitLab