From 6039bcd013a4f59c0672a618e7b1cc7964a88eeb Mon Sep 17 00:00:00 2001 From: Daniel Nordberg Date: Mon, 25 Sep 2017 16:56:53 +0300 Subject: [PATCH 1/3] Fix unicode error for python 3. --- aldryn_locations/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aldryn_locations/models.py b/aldryn_locations/models.py index 1ec7ac9..d19e2fd 100644 --- a/aldryn_locations/models.py +++ b/aldryn_locations/models.py @@ -18,7 +18,7 @@ 'ALDRYN_LOCATIONS_GOOGLEMAPS_STATICMAPS_URL', 'https://maps.googleapis.com/maps/api/staticmap', ) -MARKER_CONTENT_FORMAT = unicode(settings.ALDRYN_LOCATIONS_MARKER_CONTENT_FORMAT) +MARKER_CONTENT_FORMAT = str(settings.ALDRYN_LOCATIONS_MARKER_CONTENT_FORMAT) ZOOM_LEVELS = [(str(level), str(level)) for level in range(22)] ROADMAP = 'roadmap' From d829bd1f6a458cf334b529932fb79dfbdd5703e5 Mon Sep 17 00:00:00 2001 From: carderm Date: Sat, 5 May 2018 17:09:35 +1000 Subject: [PATCH 2/3] Fix for 'query' field not used in model, for Django 1.11 --- aldryn_locations/forms.py | 1 - 1 file changed, 1 deletion(-) diff --git a/aldryn_locations/forms.py b/aldryn_locations/forms.py index 7c7d44f..5958f1b 100644 --- a/aldryn_locations/forms.py +++ b/aldryn_locations/forms.py @@ -66,7 +66,6 @@ class EmbedViewPluginForm(ModelForm): class Meta: model = EmbedViewPlugin fields = [ - 'query', 'map_type', 'center', 'zoom', From 9e1b1ddd5b7eae6e8f6fe5dbcbdc174d5c879be7 Mon Sep 17 00:00:00 2001 From: carderm Date: Thu, 10 May 2018 10:37:49 +1000 Subject: [PATCH 3/3] Create 0005_auto_20180507_1427.py For Django 1.11 --- .../migrations/0005_auto_20180507_1427.py | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 aldryn_locations/migrations/0005_auto_20180507_1427.py diff --git a/aldryn_locations/migrations/0005_auto_20180507_1427.py b/aldryn_locations/migrations/0005_auto_20180507_1427.py new file mode 100644 index 0000000..a00a15c --- /dev/null +++ b/aldryn_locations/migrations/0005_auto_20180507_1427.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11 on 2018-05-07 04:27 +from __future__ import unicode_literals + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('aldryn_locations', '0004_auto_20160914_1511'), + ] + + operations = [ + migrations.RemoveField( + model_name='embeddirectionsplugin', + name='query', + ), + migrations.RemoveField( + model_name='embedviewplugin', + name='query', + ), + ]