Eric Boersma
180b9955cc
[1.6.x] Fixed #21035 -- Changed docs to treat the acronym SQL phonetically.
...
The documentation and comments now all use 'an' to
refer to the word SQL and not 'a'.
Backport of 4d13cc56de
from master
2013-09-05 20:16:14 -04:00
Aymeric Augustin
2a14c08e71
Used six.moves.zip_longest, new in six 1.4.0.
2013-09-03 07:34:45 -05:00
Claude Paroz
0514fbb2f3
[1.6.x] Fixed #21003 -- Ensured geometry widget return value has SRID
...
Thanks Mathieu Leplatre for the report and initial patch.
Backport of dd656073ad
from master.
2013-09-03 13:55:20 +02:00
Claude Paroz
bd0319a261
[1.6.x] Isolated map creation JS code
...
Backport of 3550b27a8
from master.
2013-09-03 13:54:50 +02:00
Claude Paroz
b53ce2f31c
[1.6.x] Prevented rendering attrs to be squashed in OSMWidget
...
Backport of b6889c68d7
from master.
2013-09-03 10:04:50 +02:00
Claude Paroz
aa1c175687
[1.6.x] Fixed syntax error in OSMWidget
...
Backport of 6ecbac21a
from master.
2013-09-03 09:08:25 +02:00
Claude Paroz
0c57868908
[1.6.x] Fixed gis test to run on non gis-enabled settings
...
Refs #20998 .
Backport of 973502c0
from master.
2013-09-02 14:31:20 +02:00
Claude Paroz
4e3794dd1f
[1.6.x] Fixed #20998 -- Allow custom (de)serialization for GIS widgets
...
Thanks Mathieu Leplatre for the report and the initial patch.
Backport of 102f26c92
from master.
2013-09-02 13:34:26 +02:00
Harm Geerts
a6ac4f90d0
[1.6.x] Fixed #20829 -- Skip postgis metadata tables with introspection
...
Backport of 24088618
from master.
2013-08-16 21:21:41 +02:00
Alasdair Nicol
919934602f
[1.6.x] Fixed #20895 -- Made check management command warn if a BooleanField does not have a default value
...
Thanks to Collin Anderson for the suggestion and Tim Graham for
reviewing the patch.
Backport of 22c6497f99
from master
2013-08-15 20:33:02 -04:00
Harm Geerts
b0bde21884
[1.6.x] Fixed #20838 -- Fixed Geodjango spatialrefsys test failure with postgis-2.0.3
...
Backport of fd0d486467
from master
2013-08-02 10:45:27 -04:00
Claude Paroz
f942554cf3
[1.6.x] Tweaked proj string regex in gis tests
...
Backport of 4367c637d6
from master
2013-08-02 10:45:12 -04:00
Claude Paroz
92f66a6134
[1.6.x] Fixed #20773 -- [gis] Fixed regression in GoogleMap output
...
Thanks Martyn Clement for the report and the initial patch.
Backport of 27c1a7257
from master.
2013-07-22 10:03:31 +02:00
Claude Paroz
e2c1e9ef55
[1.6.x] Partial revert of commit 2bf403ecbd
...
Homework: write 100 times geoapp is not geogapp.
Backport of 57815e2630
from master.
2013-07-09 14:34:16 +02:00
Claude Paroz
a9dd6221af
[1.6.x] Fixed #20224 -- Update docs examples which mention __unicode__
...
Thanks Marc Tamlyn and Tim Graham for the review.
Backport of 7442eb1a24
from master.
2013-07-05 19:30:08 +02:00
Aymeric Augustin
ffcf24c9ce
Removed several unused imports.
2013-06-19 17:18:40 +02:00
Loic Bistuer
ee77d4b253
Fixed #20199 -- Allow ModelForm fields to override error_messages from model fields
2013-06-18 08:01:17 -04:00
Claude Paroz
b14bd60404
Reimplemented PostGIS spatial_version with cached_property
2013-05-27 12:06:56 +02:00
Ramiro Morales
0fa8d43e74
Replaced `and...or...` constructs with PEP 308 conditional expressions.
2013-05-26 23:47:50 -03:00
Aymeric Augustin
9c487b5974
Replaced an antiquated pattern.
...
Thanks Lennart Regebro for pointing it out.
2013-05-17 18:08:58 +02:00
Claude Paroz
b16b72d415
Fixed #5472 --Added OpenLayers-based widgets in contrib.gis
...
Largely inspired from django-floppyforms. Designed to not depend
on OpenLayers at code level.
2013-05-17 13:33:40 +02:00
Claude Paroz
0a29057ebe
Fixed #20415 -- Ensured srid is not localized in openlayers template
...
Thanks pierremarc07 at gmail.com for the report.
2013-05-16 13:48:38 +02:00
Mike Fogel
3188775174
Fix bug introduced in contrib.gis in 74f3884ae0
2013-05-15 14:07:34 -07:00
Mike Fogel
74f3884ae0
Fixed #20413 - Respect Query.get_meta()
2013-05-15 12:55:30 -07:00
Florian Apolloner
ebfb71c64a
Fixed previous commit. (Don't commit from DjangCon!)
2013-05-15 16:50:33 +02:00
Florian Apolloner
f6d1ca56c9
Don't unregister OSMGeoAdmin, other tests rely on it.
2013-05-15 16:47:03 +02:00
Florian Apolloner
a6edde3260
Fixed embarrassing typo.
2013-05-11 22:57:01 +02:00
Florian Apolloner
01820466ca
Don't hardcode primary keys in gis tests.
2013-05-11 22:42:39 +02:00
Florian Apolloner
2bf403ecbd
Fixed a regression from e23a5f9a47
.
...
Excluded postgis specific gis tests from other spatial databases.
Refs #17365 , #17366 , #18727 .
2013-05-11 18:29:08 +02:00
Carl Meyer
9012833af8
Fixed #17365 , #17366 , #18727 -- Switched to discovery test runner.
...
Thanks to Preston Timmons for the bulk of the work on the patch, especially
updating Django's own test suite to comply with the requirements of the new
runner. Thanks also to Jannis Leidel and Mahdi Yusuf for earlier work on the
patch and the discovery runner.
Refs #11077 , #17032 , and #18670 .
2013-05-10 23:08:45 -04:00
Claude Paroz
7b00d90208
[py3] Made GeoIP tests pass with Python 3
2013-05-10 13:21:07 +02:00
Claude Paroz
465a29abe0
Fixed #20384 -- Forced GeoIP_open path argument to bytestring
...
Thanks Julian Wachholz for the report.
2013-05-10 13:21:07 +02:00
Aymeric Augustin
1906cb9360
Fixed conditional skipping of test for left/right lookup types.
...
connection.ops.spatial_version is None for some backends (eg. MySQL) and
the comparison fails on Python 3 with TypeError.
2013-05-09 17:39:56 +02:00
Alex Gaynor
a53d7a0a50
Made gis_terms be a set, rather than a dict with None for all keys.
2013-05-09 08:13:13 -07:00
Claude Paroz
9f7a01ef2b
Updated translation templates and removed en translations
...
"en" translations have been mistakenly committed in 87cc3da81
.
2013-05-02 16:25:23 +02:00
Claude Paroz
53df89c0fe
Updated get_ogr_db_string in inspectapp tests to support MySQL/Spatialite
...
The OGRInspectTest.test_time_field does still not succeed with these
databases (even when removing the postgis guard), but at least it's now
possible to setup a datasource.
2013-04-15 20:27:58 +02:00
Claude Paroz
1628dfd0b9
Properly used test skipping in OGRInspectTest TestCase
2013-04-15 19:38:24 +02:00
Claude Paroz
ddfc68379f
Changed a deprecated warn() call in libgeos
2013-04-11 11:01:17 +02:00
Claude Paroz
244e765a94
Updated translation templates
2013-03-28 10:06:11 +01:00
Claude Paroz
c5084e7557
Updated translations from Transifex
...
Polish, Telugu, Georgian, Azerbaijani, Norwegian Bokmål, Basque,
Dutch, Thai, Spanish (Argentina), Afrikaans.
2013-03-28 09:24:07 +01:00
konarkmodi
bc4111ba68
Fixed #18003 -- Preserved tracebacks when re-raising errors.
...
Thanks jrothenbuhler for draft patch, Konark Modi for updates.
2013-03-19 15:42:39 -07:00
Claude Paroz
18e990fa96
Fixed #16110 -- Fixed GeometryField odd behaviour regarding null values
...
Thanks slinkp for the report and the initial patch.
2013-03-15 21:45:33 +01:00
Claude Paroz
747f7d2549
Fixed #20036 -- Improved GEOS version string parsing
...
Thanks chikiro.spam at gmail.com for the report.
2013-03-13 09:52:33 +01:00
Anssi Kääriäinen
d3f00bd570
Refactored qs.add_q() and utils/tree.py
...
The sql/query.py add_q method did a lot of where/having tree hacking to
get complex queries to work correctly. The logic was refactored so that
it should be simpler to understand. The new logic should also produce
leaner WHERE conditions.
The changes cascade somewhat, as some other parts of Django (like
add_filter() and WhereNode) expect boolean trees in certain format or
they fail to work. So to fix the add_q() one must fix utils/tree.py,
some things in add_filter(), WhereNode and so on.
This commit also fixed add_filter to see negate clauses up the path.
A query like .exclude(Q(reversefk__in=a_list)) didn't work similarly to
.filter(~Q(reversefk__in=a_list)). The reason for this is that only
the immediate parent negate clauses were seen by add_filter, and thus a
tree like AND: (NOT AND: (AND: condition)) will not be handled
correctly, as there is one intermediary AND node in the tree. The
example tree is generated by .exclude(~Q(reversefk__in=a_list)).
Still, aggregation lost connectors in OR cases, and F() objects and
aggregates in same filter clause caused GROUP BY problems on some
databases.
Fixed #17600 , fixed #13198 , fixed #17025 , fixed #17000 , fixed #11293 .
2013-03-13 10:44:49 +02:00
Aymeric Augustin
4846e2b744
Removed unused imports.
...
One of these functions didn't exist anymore.
2013-03-12 10:09:04 +01:00
Aymeric Augustin
f2f98abb95
Avoided closing the database connection within a transaction.
...
Refs #9437 .
2013-03-11 21:08:49 +01:00
Aymeric Augustin
1adb7b3c38
Ported layermapping for autocommit.
2013-03-11 20:03:17 +01:00
Aymeric Augustin
ba5138b1c0
Deprecated transaction.commit/rollback_unless_managed.
...
Since "unless managed" now means "if database-level autocommit",
committing or rolling back doesn't have any effect.
Restored transactional integrity in a few places that relied on
automatically-started transactions with a transitory API.
2013-03-11 14:48:54 +01:00
Claude Paroz
360217fc87
Fixed #19171 -- Allowed coordinate transforms with custom SRIDs
...
Thanks reidpr at lanl.gov for the report.
2013-03-09 17:46:20 +01:00
Claude Paroz
e6f5b7eacd
Fixed #9806 -- Allowed editing GeometryField with OpenLayersWidget
...
Thanks Paul Winkler for the initial patch.
2013-03-09 16:10:28 +01:00