From f6784597ebd126ee6e5cf8571383c9d27fe4e439 Mon Sep 17 00:00:00 2001 From: Aadarsha Dhakal Date: Mon, 6 Sep 2021 00:05:09 +0545 Subject: [PATCH 1/2] Fix for django 3 --- geoposition/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geoposition/fields.py b/geoposition/fields.py index 9fe86bc..238fb11 100644 --- a/geoposition/fields.py +++ b/geoposition/fields.py @@ -40,7 +40,7 @@ def to_python(self, value): return Geoposition(latitude, longitude) - def from_db_value(self, value, expression, connection, context): + def from_db_value(self, value, expression, connection, context=None): return self.to_python(value) def get_prep_value(self, value): From dab9cc309ab05e0e7c61d6d4c24844da678262e1 Mon Sep 17 00:00:00 2001 From: Ayush Paudel <70231402+AyushPaudel@users.noreply.github.com> Date: Fri, 29 Oct 2021 22:50:45 +0545 Subject: [PATCH 2/2] Update README.rst --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index e08ce2d..e888b22 100644 --- a/README.rst +++ b/README.rst @@ -34,7 +34,7 @@ Installation INSTALLED_APPS = ( # … - "geoposition", + "geoposition.apps.GeoPositionConfig", ) - Set your Google API key in you settings file::