This commit is contained in:
Yohan Boniface 2014-06-19 14:39:45 +02:00
parent 728303f0d9
commit c52d63faf9
4 changed files with 7 additions and 3 deletions

View file

@ -5,5 +5,5 @@ psycopg2==2.5.2
python-social-auth==0.1.23
simplejson
South==0.7.6
django-leaflet-storage==0.6.6
django-leaflet-storage==0.6.7
django-pgindex==0.8.2

View file

@ -1,5 +1,5 @@
"Create maps with OpenStreetMap layers in a minute and embed them in your site."
VERSION = (0, 6, 6)
VERSION = (0, 6, 7)
__author__ = 'Yohan Boniface'
__contact__ = "yb@enix.org"

View file

@ -16,6 +16,8 @@
<script src="{{ STATIC_URL }}storage/reqs/label/leaflet.label-src.js"></script>
<script src="{{ STATIC_URL }}storage/reqs/georsstogeojson/GeoRSSToGeoJSON.js"></script>
<script src="{{ STATIC_URL }}storage/reqs/heat/leaflet-heat.js"></script>
<script src="{{ STATIC_URL }}storage/reqs/togpx/togpx.js"></script>
<script src="{{ STATIC_URL }}storage/reqs/tokml/tokml.js"></script>
{% endcompress %}
{% if locale %}
<script src="{{ STATIC_URL }}storage/src/locale/{{ locale }}.js"></script>

View file

@ -6,7 +6,7 @@ import socket
from urlparse import urlparse
from django.views.generic import TemplateView
from django.contrib.auth.models import User
from django.contrib.auth import get_user_model
from django.views.generic import DetailView, View
from django.db.models import Q
from django.contrib.gis.measure import D
@ -21,6 +21,8 @@ from pgindex import search as pg_search
from leaflet_storage.models import Map
from leaflet_storage.forms import DEFAULT_CENTER
User = get_user_model()
class PaginatorMixin(object):
per_page = 5