diff options
Diffstat (limited to 'ishtar_common/utils.py')
-rw-r--r-- | ishtar_common/utils.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/ishtar_common/utils.py b/ishtar_common/utils.py index b48b8f3a2..9aee643c4 100644 --- a/ishtar_common/utils.py +++ b/ishtar_common/utils.py @@ -63,7 +63,6 @@ from django.core.exceptions import SuspiciousOperation, ObjectDoesNotExist, \ ValidationError from django.core.files import File from django.core.files.storage import FileSystemStorage -from django.core.management import call_command from django.core.validators import EMPTY_VALUES, MaxValueValidator from django.db import models from django.db.models import Q @@ -1506,12 +1505,6 @@ def get_columns_from_class(cls, table_cols_attr="TABLE_COLS", dict_col_labels=Tr return table_cols, table_cols_label -def migrations_load_data(module_name, migration_filename): - json_path = os.sep.join(os.path.abspath(__file__).split(os.sep)[:-2] + [ - module_name, "migrations", migration_filename]) - call_command("loaddata", json_path) - - def create_default_areas(models=None, verbose=False): # can be used on migrations if models are provided if not models: |