Skip to content

Commit 591d4c2

Browse files
authored
Merge pull request zostera#393 from aptiko/gis
Add test to illustrate gis failure in Django 1.11
2 parents b64bdaf + cf7a7eb commit 591d4c2

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

bootstrap3/tests.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
from django import forms
77
from django.contrib.admin.widgets import AdminSplitDateTime
8+
from django.contrib.gis import forms as gisforms
89
from django.contrib.messages import constants as DEFAULT_MESSAGE_LEVELS
910
from django.forms.formsets import formset_factory
1011
from django.template import engines
@@ -89,6 +90,7 @@ class TestForm(forms.Form):
8990
addon = forms.CharField(
9091
widget=forms.TextInput(attrs={'addon_before': 'before', 'addon_after': 'after'}),
9192
)
93+
polygon = gisforms.PointField()
9294

9395
required_css_class = 'bootstrap3-req'
9496

testsettings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
'django.contrib.sessions',
1818
'django.contrib.messages',
1919
'django.contrib.staticfiles',
20+
'django.contrib.gis',
2021

2122
# We test this one
2223
'bootstrap3',
@@ -42,6 +43,8 @@
4243

4344
ROOT_URLCONF = None
4445

46+
STATIC_URL = '/static/'
47+
4548
BOOTSTRAP3 = {
4649
'theme_url': '//example.com/theme.css',
4750
'javascript_in_head': True,

0 commit comments

Comments
 (0)