Daniel Wiesmann
4df3a3e0e9
Added GDAL prototypes for raster support
...
Refs #23804 .
2014-12-02 19:56:35 +01:00
Kamil Braun
0623f4dea4
Fixed #23934 -- Fixed regression in admin views obj parameter.
2014-12-02 08:42:17 -05:00
wrwrwr
bfc75996f9
Fixed #23945 -- Made default site use the configured SITE_ID.
2014-12-01 19:36:50 -05:00
wrwrwr
1f98ec2e53
Fixed #23929 -- Added more tests for create_default_site.
...
Refs: #15346 , #15573 , #16353 , #16828 .
2014-12-01 14:38:16 -05:00
wrwrwr
777b4c26e3
Removed a clear_cache statement in contrib.sites.create_default_site.
...
It was originally added to fix a test (refs #7514 ); but Site now has a
pre_save signal handler (refs #19698 ) to clear the cache which makes
this call redundant.
2014-12-01 13:19:58 -05:00
wrwrwr
9136ceb6fb
Replaced router.routers usage with override_settings(DATABASE_ROUTERS); refs #23933 .
2014-12-01 11:34:15 -05:00
Berker Peksag
c8dcded930
Fixed #17890 -- Added an extra_context parameter to AdminSite.password_change().
2014-11-29 10:31:09 -05:00
Thomas Chaumeny
17fe0bd808
Fixed #23423 -- Added unaccent lookup in django.contrib.postgres
2014-11-28 18:22:20 -05:00
sdeprez
9e80c5f457
Fixed #23925 -- Allowed settings.AUTHENTICATION_BACKENDS to reference import aliases
2014-11-28 10:47:33 -05:00
Markus Holtermann
912ad03226
Fixed #23894 -- Made deconstruct methods favor kwargs over args
2014-11-28 06:05:56 -05:00
Diego Guimarães
f39b0421b4
Fixed #23338 -- Added warning when unique=True on ForeigKey
...
Thanks Jonathan Lindén for the initial patch, and Tim Graham
and Gabe Jackson for the suggestions.
2014-11-27 19:42:30 -05:00
wrwrwr
dd35cc232a
Fixed #23641 -- Moved post_migrate signals for contrib apps to AppConfig.ready().
2014-11-27 13:06:35 -05:00
Anssi Kääriäinen
cbb5cdd155
Fixed #23867 -- removed DateQuerySet hacks
...
The .dates() queries were implemented by using custom Query, QuerySet,
and Compiler classes. Instead implement them by using expressions and
database converters APIs.
2014-11-26 17:49:25 -05:00
Tim Graham
14a3b60981
Fixed #23677 -- Removed contrib.formtools
2014-11-26 09:56:33 -05:00
Simon Charette
3a9aa155e2
Fixed #23915 -- Made sure m2m fields through non-pk to_field are allowed in the admin.
...
refs #23754 , #23862
2014-11-25 15:28:21 -05:00
Simon Charette
f9c4e14aec
Fixed #23754 -- Always allowed reference to the primary key in the admin
...
This change allows dynamically created inlines "Add related" button to work
correcly as long as their associated foreign key is pointing to the primary
key of the related model.
Thanks to amorce for the report, Julien Phalip for the initial patch,
and Collin Anderson for the review.
2014-11-25 13:26:50 -05:00
Redouane Zait
8e7b384d89
Fixed #23898 -- Added missing context to admin's deleted_selected view.
...
Thanks Redouane Zait for the report.
2014-11-25 11:22:15 -05:00
Aymeric Augustin
18533fb558
Removed direct references to template-related settings.
2014-11-23 11:54:22 +01:00
Carl Meyer
bcb693ebd4
Revert "Fixed #23892 -- Made deconstructible classes forwards compatible"
...
This reverts commit f36151ed16
.
Adding kwargs to deconstructed objects does not achieve useful
forward-compatibility in general, since additional arguments are silently
dropped rather than having their intended effect. In fact, it can make the
failure more difficult to diagnose. Thanks Shai Berger for discussion.
2014-11-22 22:29:23 -07:00
Carl Meyer
f36151ed16
Fixed #23892 -- Made deconstructible classes forwards compatible
2014-11-22 14:30:14 -07:00
Aymeric Augustin
7331788300
Avoided rewrapping Contexts in render_to_response.
...
This change preserves backwards-compatibility for a very common misuse
of render_to_response which even occurred in the official documentation.
It fixes that misuse wherever it happened in the code base and docs.
Context.__init__ is documented as accepting a dict and nothing else.
Since Context is dict-like, Context(Context({})) could work to some
extent. However, things get complicated with RequestContext and that
gets in the way of refactoring the template engine. This is the real
rationale for this change.
2014-11-22 17:58:38 +01:00
Carl Meyer
d2bcb05980
Fixed #23873 -- Improved GIS error message when GEOS is not installed.
...
Thanks Claude for writing the patch.
2014-11-19 19:23:13 -07:00
Carl Meyer
4932a7b8e0
Fixed GIS tests to again skip without error when GEOS is not installed.
2014-11-19 14:29:05 -07:00
Aymeric Augustin
45db7f7db8
Replaced caching of a property with @cached_property.
2014-11-19 21:53:24 +01:00
Aymeric Augustin
dca33ac15d
Simplified caching of password hashers.
...
load_hashers cached its result regardless of its password_hashers
argument which required fragile cache invalidation. Remove that
argument in favor of @override_settings and triggering cache
invalidation with a signal.
2014-11-19 21:35:39 +01:00
Carl Meyer
0eba8bd8f6
Fixed GeoSQLCompiler to pass itself correctly to column as_sql.
2014-11-19 08:33:38 -07:00
Carl Meyer
84d88f5cbe
Removed a deprecated use of SQLCompiler as quote_name in GIS.
2014-11-19 08:03:48 -07:00
Claude Paroz
fc36437434
Added assertion error message for test_make_line
...
Refs #23842 . Thanks Thomas Chaumeny for the suggestion.
2014-11-17 14:17:08 +01:00
Josh Smeaton
f61256da3a
Renamed qn to compiler
2014-11-16 13:19:34 +01:00
Claude Paroz
35dac5070b
Added a new GeoJSON serialization format for GeoDjango
...
Thanks Reinout van Rees for the review.
2014-11-15 18:07:18 +01:00
Erik Romijn
c1584e1df4
Refs #23793 -- Fixed test failure after password reset messages clarification
2014-11-15 17:05:24 +01:00
Marc Tamlyn
9a5a4361c5
Merge pull request #3531 from ddaan/ticket_23834
...
fixed #23834 -- added test and fix to check for default null on ArrayField
2014-11-15 15:37:03 +00:00
Yigit Guler
9dde0a211e
Fixed #23793 -- Clarified password reset messages.
2014-11-15 16:29:13 +01:00
Daan Vielen
a7c58eaca4
added test and fix to check for default null on ArrayField
2014-11-15 15:20:11 +00:00
Josh Smeaton
f59fd15c49
Fixed #14030 -- Allowed annotations to accept all expressions
2014-11-15 14:00:43 +00:00
averybigant
b7a5b6ab86
Fixed #23750 -- Allowed core.checks.register to be used as a function
2014-11-11 16:29:32 +01:00
Marc Tamlyn
36f514f065
Added HStoreField.
...
Thanks to `django-hstore` for inspiration in some areas, and many people
for reviews.
2014-11-04 09:26:40 +00:00
Veres Lajos
a71a2ea756
Fixed typos using https://github.com/vlajos/misspell_fixer
2014-11-03 20:59:30 -05:00
Zan Anderle
7b42036752
Fixed #5405 -- Added admindocs support for reStructured text in model docstrings
...
Thanks elvard and gkmngrgn for work on the patch and Markus H. for review.
2014-11-03 15:30:46 -05:00
Zan Anderle
1cf109515a
Changed docstrings in admindocs/utils to comply to PEP 257
2014-11-03 15:00:49 -05:00
Berker Peksag
f7969b0920
Fixed #23620 -- Used more specific assertions in the Django test suite.
2014-11-03 11:56:37 -05:00
Tim Graham
d6d55368d4
Fixed #23731 -- Fixed migrations crash when adding blank GeometryFields on PostGIS.
...
Thanks raratiru for the report and Claude Paroz for review.
2014-10-31 18:37:52 -04:00
Tim Graham
e548d08f24
Renamed SpatiaLite feature flag introduced in refs #23152 .
...
Thanks Doug Goldstein for the suggestion.
2014-10-31 15:55:45 -04:00
Aymeric Augustin
c0c1bb9e64
Avoided using private API get_template_from_string.
2014-10-31 11:38:53 +01:00
Tim Graham
57e40551e4
Fixed #23152 -- Added support for transactional Spatialite metadata initialization.
...
Thanks Doug Goldstein for the initial patch.
2014-10-30 13:52:42 -04:00
Tim Graham
03bd79ed21
Fixed #23719 -- Fixed MySQL 5.6 crash with GeometryFields in migrations.
2014-10-29 08:21:24 -04:00
Berker Peksag
c9178ef17a
Limited lines to 119 characters in django/{contrib,db}.
...
Refs #23395 .
2014-10-29 07:59:35 -04:00
Claude Paroz
d49183e4be
Removed unused import
2014-10-24 17:07:50 +02:00
Claude Paroz
1bdf1cb1c0
Updated gis_migrations tests
2014-10-24 15:10:39 +02:00
a1tus
2d75515a4c
Fixed #23444 -- Deprecated django.contrib.admin.helpers.InlineAdminForm.original_content_type_id
2014-10-23 09:49:24 -04:00