Skip to content
This repository has been archived by the owner on Feb 1, 2019. It is now read-only.

Fix for unused field 'query' for Django 1.11 #29

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion aldryn_locations/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ class EmbedViewPluginForm(ModelForm):
class Meta:
model = EmbedViewPlugin
fields = [
'query',
'map_type',
'center',
'zoom',
Expand Down
23 changes: 23 additions & 0 deletions aldryn_locations/migrations/0005_auto_20180507_1427.py
Original file line number Diff line number Diff line change
@@ -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',
),
]
2 changes: 1 addition & 1 deletion aldryn_locations/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down