Claude Paroz
9267fb88ef
Added more spatial predicates for prepared geometries
...
GEOS 3.3 added crosses, disjoint, overlaps, touches and within
predicates on prepared geometries.
2013-12-24 16:53:09 +01:00
Claude Paroz
d17404aa90
Dropped support for GEOS < 3.1
2013-12-24 15:57:13 +01:00
Claude Paroz
542198c1d0
Fixed #21662 -- Kept parent reference in prepared geometry
...
Thanks Robert Scott for the report.
2013-12-24 15:25:48 +01:00
Aymeric Augustin
1716b7ce5a
Renamed AppCache to Apps.
...
Also renamed app_cache to apps and "app cache" to "app registry".
Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
2013-12-24 12:25:17 +01:00
Aymeric Augustin
e32095616c
Imported override_settings from its new location.
2013-12-23 21:37:56 +01:00
Aymeric Augustin
da16bb30ff
Dropped AppCache._empty, _with_app and _without_app.
...
It's now easier to achieve the same effect with modify_settings or
override_settings.
2013-12-23 21:37:56 +01:00
Aymeric Augustin
2fef9e5375
Moved apps back in the toplevel django namespace.
...
Reverted 4a56a93cc4
.
2013-12-22 11:39:55 +01:00
Aymeric Augustin
9b3389b726
Removed the app_config.installed flag.
...
Since applications that aren't installed no longer have an application
configuration, it is now always True in practice.
Provided an abstraction to temporarily add or remove applications as
several tests messed with app_config.installed to achieve this effect.
For now this API is _-prefixed because it looks dangerous.
2013-12-22 11:39:17 +01:00
Aymeric Augustin
7eea9bf303
Normalized Model._meta.installed.
...
Used the information from the app cache instead of creating a duplicate
based on INSTALLED_APPS.
Model._meta.installed is no longer writable. It was a rather sketchy way
to alter private internals anyway.
2013-12-17 21:55:16 +01:00
Aymeric Augustin
4a56a93cc4
Moved the new app cache inside core.
2013-12-17 10:17:46 +01:00
Aymeric Augustin
8662654d6d
Removed module-level functions for the app cache.
...
Since the original ones in django.db.models.loading were kept only for
backwards compatibility, there's no need to recreate them. However, many
internals of Django still relied on them.
They were also imported in django.db.models. They never appear in the
documentation, except a quick mention of get_models and get_app in the
1.2 release notes to document an edge case in GIS. I don't think that
makes them a public API.
This commit doesn't change the overall amount of global state but
clarifies that it's tied to the app_cache object instead of hiding it
behind half a dozen functions.
2013-12-17 10:17:44 +01:00
Claude Paroz
164a3a388c
Revert "Allowed running GIS form tests that don't require spatial database"
...
This reverts commit 07fe0bf3f4
.
This was not working properly on system without geos library
installed.
2013-12-14 21:03:09 +01:00
Loic Bistuer
6685713869
Fixed E127 pep8 warnings.
2013-12-14 11:59:15 -05:00
Jakub Gocławski
07fe0bf3f4
Allowed running GIS form tests that don't require spatial database
2013-12-14 13:57:58 +01:00
Jakub Gocławski
2ddf1fc50f
Fixed #21606 -- Fixed default_lat and default_lon override in OSMWidget
2013-12-14 13:53:37 +01:00
Loic Bistuer
a2814846ca
Fixed E124 pep8 warnings.
2013-12-10 15:12:48 -05:00
Claude Paroz
5c61b8519d
Fixed #18531 -- Deprecated Geo Sitemaps
...
I've chosen a quick deprecation path, as Geo Sitemaps themselves
are deprecated from some time now.
2013-12-07 21:46:03 +01:00
Ramiro Morales
362dd68fb2
Added new 'srtext' spatialite 4.x SpatialRefSys column to its model.
...
This is for general consistency in the GeoDjango DB backends.
Thanks Claude for the fix.
Refs #19678 .
2013-12-06 12:35:18 -03:00
Ramiro Morales
9a73e7f40c
Fixed #19678 -- GeoDjango test failure with spatialite >= 3.0.
...
Thanks Julien for the report and Claude for the fix.
2013-12-06 08:51:45 -03:00
Claude Paroz
482ca0cecc
Renamed syncdb to migrate in spatialite backend
2013-12-06 10:00:09 +01:00
Ramiro Morales
e36c165b14
Corrected setting name in gis test error message.
2013-12-05 18:22:37 -03:00
Claude Paroz
34b8a38558
Fixed #21496 -- Fixed crash when GeometryField uses TextInput
...
Thanks Rhett Garber for the report and initial patch.
2013-11-28 18:29:02 +01:00
Christopher Medrela
7477a4ffde
Fixed E125 pep8 warnings
2013-11-28 08:50:11 -05:00
Alex Gaynor
a5b94d9d4e
A handle of flake8 fixes
2013-11-27 16:42:39 -06:00
Andrew Godwin
eece3c224e
PostGIS schema editor support
2013-11-27 13:32:12 +00:00
Andrew Godwin
4fcfc31865
Add gis deconstruct() method (this does not make schema work)
2013-11-27 12:56:33 +00:00
Baptiste Mispelon
17912522ce
Fixed #21504 -- Don't shadow database errors when testing for postgis version.
...
Thanks to trac user paultag for the report.
2013-11-24 14:34:43 +01:00
Bouke Haarsma
4142d15102
Fixed #21388 -- Corrected language code for Frisian
2013-11-11 13:34:01 +01:00
Claude Paroz
7e714827ea
Don't initialize PostGIS-specific stuff for non-db connections
...
Refs #16969 .
2013-11-09 11:28:16 +01:00
Alex Gaynor
c347f78cc1
Fixed all E226 violations
2013-11-03 10:08:55 -08:00
Florian Apolloner
f40f90d63b
Fixed regressions from 36ded01527
.
...
Refs #21302
2013-11-03 12:45:15 +01:00
Alex Gaynor
4202d9cf0c
Whitespace fix
2013-11-03 01:53:28 -07:00
Alex Gaynor
6c1b55d61a
Re-expose Count here
2013-11-03 01:52:40 -07:00
coagulant
3bc0d46a84
Fixed all E261 warnings
2013-11-02 18:20:39 -04:00
Alex Gaynor
7548aa8ffd
More attacking E302 violators
2013-11-02 13:12:09 -07:00
Boryslav Larin
e737c009b8
Fixed flake8 E241
2013-11-02 21:45:40 +02:00
Tim Graham
36ded01527
Fixed #21302 -- Fixed unused imports and import *.
2013-11-02 15:24:56 -04:00
Alex Gaynor
19256f300e
Continue to attack E302 violations
2013-11-02 10:18:46 -07:00
Claude Paroz
c64efe3734
Fixed #15529 -- More permissive geojson syntax in constructor
...
Thanks Wouter Klein Heerenbrink for the report.
2013-10-31 18:15:54 +01:00
Alex Gaynor
b9a90b371c
Remove dsome import *
2013-10-26 20:57:08 -07:00
Alex Gaynor
b35ff0d920
Fixed all the E203 violations
2013-10-26 18:27:42 -07:00
Alex Gaynor
f2d8027c9a
Fixed up some more flake8 violations (this particular violation still has many occurrences in the tests/ dir so it can't be removed from setup.cfg yet)
2013-10-26 10:50:40 -07:00
Alex Gaynor
9bf5610890
Start attacking E231 violations
2013-10-24 10:30:03 -07:00
Alasdair Nicol
c3aa2948c6
Fixed #21298 -- Fixed E301 pep8 warnings
2013-10-23 13:45:03 +01:00
Tim Graham
ae48d77ef8
Fixed E225 pep8 warnings.
2013-10-23 06:09:29 -04:00
Tim Graham
1597503a01
Fixed E221 pep8 warnings.
2013-10-22 09:51:39 -04:00
Tim Graham
8e2029f8dd
Removed import * in tests.
...
Thanks to flake8 path/to/file.py | awk -F ' ' '{ print $5 }' | sort | uniq
2013-10-22 08:32:01 -04:00
Alasdair Nicol
b289fcf1bf
Fixed #21288 -- Fixed E126 pep8 warnings
2013-10-21 08:31:30 -04:00
Alasdair Nicol
a800036981
Fixed #21287 -- Fixed E123 pep8 warnings
2013-10-18 10:07:39 +01:00
Alasdair Nicol
bab9123daa
Fixed #21268 -- Fixed E303 pep8 warnings
2013-10-18 01:46:24 +01:00