From f4ef92eee65ba2621b204f36c70f870e2503be07 Mon Sep 17 00:00:00 2001 From: Fabian Weisshaar Date: Sun, 26 May 2019 17:12:56 +0200 Subject: [PATCH] Don't set location to repeater as field will be removed --- .../callsign/management/commands/import_dmr_repeater.py | 1 - project_novis/callsign/management/commands/import_repeatermap.py | 1 - 2 files changed, 2 deletions(-) diff --git a/project_novis/callsign/management/commands/import_dmr_repeater.py b/project_novis/callsign/management/commands/import_dmr_repeater.py index 3c07a97..12641c3 100644 --- a/project_novis/callsign/management/commands/import_dmr_repeater.py +++ b/project_novis/callsign/management/commands/import_dmr_repeater.py @@ -48,7 +48,6 @@ def handle(self, *args, **options): callsign=call_sign_instance, defaults={"callsign": call_sign_instance, "website": repeater.get("website", None), - "location": call_sign_instance.location, "altitude": repeater.get("agl", None), "created_by_id": self._import_user.id, "source": self.source}) diff --git a/project_novis/callsign/management/commands/import_repeatermap.py b/project_novis/callsign/management/commands/import_repeatermap.py index fb5fb24..c71c550 100644 --- a/project_novis/callsign/management/commands/import_repeatermap.py +++ b/project_novis/callsign/management/commands/import_repeatermap.py @@ -45,7 +45,6 @@ def handle(self, *args, **options): repeater_instance, new_repeater = Repeater.objects.get_or_create(callsign=call_sign_instance, defaults={"callsign": call_sign_instance, "website": repeater["url"], - "location": Point(repeater["lon"], repeater["lat"]), "created_by": self._import_user, "source": self.source}) transmitter_instance, new_transmitter = Transmitter.objects.get_or_create(