From ef5a0cd62e1023fc786dfa19904dbf20ddd3d9c1 Mon Sep 17 00:00:00 2001 From: Yashika Jotwani Date: Fri, 14 Jan 2022 22:57:36 +0530 Subject: [PATCH] [change] Use ReconnectingWebsocket to websocket connection #101 Fixes #101 --- django_loci/apps.py | 2 +- django_loci/base/admin.py | 2 +- django_loci/base/models.py | 2 +- django_loci/tests/testdeviceapp/models.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/django_loci/apps.py b/django_loci/apps.py index 1000b95..f2b5ba0 100644 --- a/django_loci/apps.py +++ b/django_loci/apps.py @@ -3,7 +3,7 @@ from django.apps import AppConfig from django.conf import settings from django.core.checks import Warning, register -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from .base.geocoding_views import geocode from .channels.receivers import load_location_receivers diff --git a/django_loci/base/admin.py b/django_loci/base/admin.py index 027ce1c..74186a9 100644 --- a/django_loci/base/admin.py +++ b/django_loci/base/admin.py @@ -8,7 +8,7 @@ from django.http import JsonResponse from django.shortcuts import get_object_or_404 from django.utils.functional import cached_property -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from leaflet.admin import LeafletGeoAdmin from openwisp_utils.admin import TimeReadonlyAdminMixin diff --git a/django_loci/base/models.py b/django_loci/base/models.py index 533d5ed..00b40af 100644 --- a/django_loci/base/models.py +++ b/django_loci/base/models.py @@ -6,7 +6,7 @@ from django.contrib.gis.db import models from django.contrib.humanize.templatetags.humanize import ordinal from django.core.exceptions import ValidationError -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from openwisp_utils.base import TimeStampedEditableModel diff --git a/django_loci/tests/testdeviceapp/models.py b/django_loci/tests/testdeviceapp/models.py index 18105d4..5b137d2 100644 --- a/django_loci/tests/testdeviceapp/models.py +++ b/django_loci/tests/testdeviceapp/models.py @@ -1,5 +1,5 @@ from django.db import models -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from openwisp_utils.base import TimeStampedEditableModel