Anssi Kääriäinen
76e38a2177
[1.6.x] Fixed #20988 -- Added model meta option select_on_save
...
The option can be used to force pre 1.6 style SELECT on save behaviour.
This is needed in case the database returns zero updated rows even if
there is a matching row in the DB. One such case is PostgreSQL update
trigger that returns NULL.
Reviewed by Tim Graham.
Refs #16649
Backport of e973ee6a9879969b8ae05bb7ff681172cc5386a5 from master
Conflicts:
django/db/models/options.py
tests/basic/tests.py
2013-08-30 09:47:34 +03:00
Anssi Kääriäinen
cd10e998b6
[1.6.x] Removed stale add_q() comment
...
Backport of 13be3bfef1 from master
2013-08-30 09:46:16 +03:00
Tim Graham
10d15f79e5
[1.6.x] Fixed #14786 -- Fixed get_db_prep_lookup calling get_prep_value twice if prepared is False.
...
Thanks homm for the report and Aramgutang and lrekucki for work on
the patch.
Backport of f19a3669b8 from master
2013-08-29 12:14:40 -04:00
Tim Graham
ef1259342b
[1.6.x] Fixed #16433 -- Fixed a help_text/read only field interaction that caused an admin crash.
...
Thanks chris at cogdon.org for the report and admackin for the patch.
Backport of af953c45cc from master
2013-08-29 09:45:02 -04:00
Claude Paroz
58157be5ad
[1.6.x] Fixed #20984 -- Stopped decoding bytes in sqlite3 adapter on Python 3
...
Thanks lvella at gmail.com for the report.
Backport of 169637649 from master.
2013-08-29 08:43:35 +02:00
Claude Paroz
2c08d474a8
[1.6.x] Fixed #20961 -- Fixed HttpResponse default empty content
...
Thanks epandurski at gmail.com for the report.
Backport of f4e980456 from master.
2013-08-24 18:10:50 +02:00
Tim Graham
5f061986b9
[1.6.x] Fixed #20922 -- Allowed customizing the serializer used by contrib.sessions
...
Added settings.SESSION_SERIALIZER which is the import path of a serializer
to use for sessions.
Thanks apollo13, carljm, shaib, akaariai, charettes, and dstufft for reviews.
Backport of b0ce6fe656 from master
2013-08-22 17:55:01 -04:00
Claude Paroz
ff92a6eb5b
[1.6.x] Moved translator comment just above the target string
...
Backport of 8cd874298 from master.
2013-08-22 09:54:35 +02:00
Anssi Kääriäinen
161e26c2ec
[1.6.x] Fixed #20955 -- select_related regression
...
In cases where the same connection (from model A to model B along the
same field) was needed multiple times in a select_related query, the
join setup code mistakenly reused an existing join.
Backpatch of 8d65b6082c8bf5df25608d8733470879a8a61d7d.
Conflicts:
django/db/models/sql/compiler.py
tests/queries/tests.py
2013-08-22 10:59:59 +03:00
Tim Graham
28b1317fd8
[1.6.x] Fixed #20949 -- Typo #2 in docstring
...
Backport of 0073f1d94f from master
2013-08-21 10:50:27 -04:00
Tim Graham
b0821e6d3a
[1.6.x] Fixed docstring typo, thanks minddust.
...
Backport of d3ed15b79d from master
2013-08-21 09:02:19 -04:00
Florian Apolloner
12d364a9b0
[1.6.x] Fixed #20933 -- Allowed loaddata to load fixtures from relative paths.
...
Backport of 6e846f7627ecf0dc15053624a23bfbf47535972d from master.
2013-08-20 21:28:14 +02:00
Anssi Kääriäinen
2b1101a4a6
[1.6.x] Fixed #20820 -- Model inheritance + m2m fixture loading regression
...
Tests by Tim Graham, report from jeroen.pulles@redslider.net .
Backport of 1ed77e7782 from master
2013-08-20 17:15:52 +03:00
Simon Charette
f0bc2865ff
Fixed #20943 -- Weakly reference senders when caching their associated receivers
...
Backport of e55ca60903 from master.
2013-08-20 02:12:50 -04:00
Simon Charette
e7a6eaf5fe
[1.6.x] Correctly format missing Pillow/PIL exceptions messages. refs #19934
...
Backport of b9590a6935 from master.
2013-08-19 18:51:22 -04: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
Claude Paroz
1b48de06c3
[1.6.x] Updated translation templates
2013-08-16 15:13:31 +02:00
Tim Graham
c769c26601
[1.6.x] Revert "Fixed #18491 -- deleting a proxy doesn't show warning about cascade deletes"
...
This reverts commit 2b48fcc607010065c0f8107baf669dd41b164f3c.
It introduced a regression (#20777 ) which we can't easily fix in 1.6.
2013-08-16 07:59:16 -04: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
Tim Graham
ccff25b143
[1.6.x] Fixed #17778 -- Prevented class attributes on context from resolving as template variables.
...
Thanks KyleMac for the report, regebro for the patch, and Aymeric for the test.
Backport of 71b5617c24 from master.
2013-08-15 10:22:56 -04:00
Loic Bistuer
39db994790
[1.6.x] Fixed overflow for the "Recent Actions" widget on the admin index.
...
Previously the CSS targeted "li.changelink" and therefore didn't
work for the "add" and "delete" actions.
Refs #14868 .
Backport of 33fc083b0d from master
2013-08-13 13:26:37 -04:00
Jacob Kaplan-Moss
57dc238d0e
Bumped version numbers for 1.6b2.
2013-08-13 11:12:07 -05:00
Jacob Kaplan-Moss
bfbae15c66
Apply autoescaping to AdminURLFieldWidget.
...
This is a security fix; disclosure to follow shortly.
2013-08-13 11:06:00 -05:00
Jacob Kaplan-Moss
79594b40c0
Fixed is_safe_url() to reject URLs that use a scheme other than HTTP/S.
...
This is a security fix; disclosure to follow shortly.
2013-08-13 11:05:41 -05:00
Collin Anderson
e3e0cf8a0f
[1.6.x] Fixed #20865 -- Fixed raw_id_fields to work with callable limit_choices_to.
...
Backport of d53e574676 from master
2013-08-06 13:44:31 -04:00
Alex Cucu
80b95a2b1f
[1.6.x] Fixed #19918 -- Modified select_for_update to run on the write database.
...
Backport of 1c64a0f29e from master
2013-08-06 10:58:32 -04:00
Tim Heap
891cdf120a
[1.6.x] Fixed #20850 -- Added MultiWidget.needs_multipart_form
...
Backport of 75c87e2d38 from master
2013-08-05 10:13:48 -04:00
Tim Graham
90bdb42702
[1.6.x] Fixed backport error in previous commit; refs #15961
2013-08-04 07:30:30 -04:00
Loic Bistuer
9053c6da5f
[1.6.x] Moved get_search_results from BaseModelAdmin to ModelAdmin.
...
Refs #15961 .
Backport of 470a9bb22d from master.
2013-08-04 07:19:13 -04:00
Aymeric Augustin
2eac989985
[1.6.x] Fixed #20822 -- Set content type of default error pages to 'text/html'.
...
Thanks Jimmy Song for the patch.
Backport of 7843775 from master.
2013-08-04 11:04:58 +02:00
Tim Graham
97254154ab
[1.6.x] Fixed #18923 -- Corrected usage of sensitive_post_parameters in contrib.auth
...
Thanks Collin Anderson for the report.
Backport of 425d076d0c from master
2013-08-02 14:46:51 -04:00
Petr Dlouhý
4e7745cc1c
[1.6.x] Fixed LogEntry.get_admin_url() for non-existent models.
...
Regression introduced by [369b6fa]; refs #18169 .
Backport of 1b47508ac8 from master
2013-08-02 12:51:46 -04:00
Loic Bistuer
4f8fb19994
[1.6.x] Fixed #18681 -- GenericInlineModelAdmin.get_formset() no longer bypasses get_fieldsets().
...
Refs 23e1b59 which already fixed this issue for ModelAdmin and InlineModelAdmin.
Backport of a0ed2f9260 from master
2013-08-02 10:45:58 -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
Aleksandra Sendecka
6e4fd816c4
[1.6.x] Fixed #18777 -- Localized form fields with as_text/as_hidden
...
Thanks croldan for the report.
Backport of 893d8de6f5 from master
2013-08-02 08:43:19 -04:00
Tim Graham
196cc875b2
[1.6.x] Fixed #17519 -- Fixed missing SQL constraints to proxy models.
...
Thanks thibaultj for the report, jenh for the patch,
and charettes for the tests.
Backport of aa830009de from master
2013-08-02 08:42:19 -04:00
Tim Graham
b3e54f4a01
[1.6.x] Removed unused model option "admin"
...
Backport of 5df84b268d from master
2013-08-01 12:33:19 -04:00
Baptiste Mispelon
badca4716f
[1.6.x] Fixed #10491 -- Allowed passing lazy objects to HttpResponseRedirect.
...
Thanks liangent for the report.
Backport of 3c45fb8589 from master
2013-07-30 13:40:18 -04:00
MinRK
bf132bcb8d
[1.6.x] Added support for IPython.start_ipython in shell
...
IPython 1.0 introduces an actual stable public API function
for starting a normal (non-embedded) IPython session.
This is an official public API, which is promised to survive implementation changes.
2013-07-30 10:24:16 -07:00
Aymeric Augustin
88e4a3a3d9
[1.6.x] Fixed a test that could fail depending on PASSWORD_HASHERS.
...
Thanks Claude. Refs #20760 .
Backport of 5b47a9c5a0dcb513dc5ff68b617b3aa374c90f3b from master.
2013-07-30 16:18:44 +02:00
Shai Berger
17e632929c
[1.6.x] Fixed #20785 -- Corrected exception caught for Oracle LIKE operator detection
...
The code that tests to see which LIKE expressions to use now runs
using non-error-wrapped cursor, so cx_Oracle exceptions need to be caught
rather than Django DatabaseErrors.
Thanks Trac user ludo for report and initial patch.
2013-07-30 03:32:02 +03:00
Florian Apolloner
081a27c358
[1.6.x] Simplified smart_urlquote and added some basic tests.
...
Backport of b70c371fc1f18ea0c43b503122df3f311afc7105 from master.
2013-07-28 10:07:01 +02:00
Tim Graham
dbbd2b1272
[1.6.x] Fixed #20805 -- Removed an extra colon beside checkboxes in the admin.
...
Thanks CollinAnderson for the report.
Backport of 8676318d2d from master
2013-07-26 14:47:58 -04:00
Tim Graham
5cc1ea4773
[1.6.x] Updated contrib.admin to use Email/URLInputs; refs #16630
...
Backport of 2a979d2a7b from master
2013-07-26 08:02:10 -04:00
Anssi Kääriäinen
7f892cedba
[1.6.x] Fixed related model lookup regression
...
It has been possible to use models of wrong type in related field
lookups. For example pigs__in=[a_duck] has worked. Changes to
ForeignObject broke that.
It might be a good idea to restrict the model types usable in lookups.
This should be done intentionally, not accidentally and without any
consideration for deprecation path.
Backpatch of 7cca8d56d28e321ffc395c92f82d97adaa0dcf94 from master.
2013-07-26 13:17:50 +03:00
Tim Graham
9abbad491a
[1.6.x] Fixed #20679 -- Corrected CachedFilesMixin.post_process docstring.
...
Thanks bmispelon for the report.
Backport of 9b88dd3809 from master
2013-07-25 12:32:38 -04:00
Anssi Kääriäinen
d439f85bbf
[1.6.x] Fixed ._meta.pk_index() virtual field failure
...
Backport of 92476e880c from master
2013-07-25 16:35:04 +03:00
ersran9
7295a8262f
[1.6.x] Fixed #20791 -- Reworded ForeignKey default error message
...
Backport of 311c1d2848 from master.
2013-07-23 22:19:02 +02:00
Aymeric Augustin
4525eab077
[1.6.x] Fixed #20760 -- Reduced timing variation in ModelBackend.
...
Thanks jpaglier and erikr.
Backport of 5dbca13f3baa2e1bafd77e84a80ad6d8a074712e from master.
2013-07-23 15:43:43 +02:00