Aymeric Augustin
9f8810ac51
Fixed #21487 -- Session cannot store tzinfo instances anymore.
...
Thanks filipp for the report.
Forward-port of 1eddca0a
from stable/1.6.x.
2013-11-22 15:34:37 +01:00
Cody Scott
4a54b69e88
Fixed sentence structure in docs/internals/contributing/triaging-tickets.txt
2013-11-22 09:07:10 -05:00
Claude Paroz
9c6b57f709
Merge pull request #1877 from Bouke/patches/4
...
Fixed missing admindocs' site_header, refs #21293
2013-11-22 04:40:51 -08:00
Bouke Haarsma
48ce09f2f6
Fixed missing admindocs' site_header
2013-11-22 13:30:50 +01:00
Pablo Martín
3ac823fc5b
Fixed #21460 -- Reenabled proper template precedence in find_template
...
Refs #20806 . Thanks Unai Zalakain for the review.
2013-11-22 11:09:51 +01:00
Claude Paroz
d6cc37d601
Updated admindocs to use class-based views
...
Thanks Bouke Haarsma for the review.
2013-11-21 22:50:59 +01:00
Claude Paroz
1718b5256c
Fixed #21405 -- Prevented queryset overwrite in BaseModelAdmin
...
Thanks guido@20tab.com for the report and Tim Graham for the
analyze.
2013-11-21 22:18:52 +01:00
Claude Paroz
e6d5f7ae49
Made minor optimizations to admin_ordering tests
2013-11-21 20:58:28 +01:00
Unai Zalakain
2b4bed6dbd
Fixed #21476 -- Cache tests make an incorrect use of HttpRequest
...
Using `django.test.client.RequestFactory` solves the problem and cleans up all
the `get_request` mess.
2013-11-21 18:51:08 +01:00
Loic Bistuer
27f04e79b1
Fixed #21479 -- Favor 'migrate' over 'syncdb' in the docs.
2013-11-21 15:12:39 +01:00
Markus Amalthea Magnuson
b6a6cf4ab7
Fixed #21427 -- Clearly state integer field value ranges in docs
...
Added an explicit mention of the exact value ranges for integer type
fields that are safe in all databases supported by Django. Also, put
all value numbers inside double ticks.
2013-11-21 14:15:23 +01:00
Anssi Kääriäinen
f39fd3cd20
Removed isinstance(RelatedObject) checks from admin.utils
2013-11-21 14:52:01 +02:00
Anssi Kääriäinen
752d3d70da
Fixed #21431 -- GenRel->FK list_filter regression in admin
...
Report, analysis and tests from stephenmcd.
2013-11-21 14:52:00 +02:00
Anssi Kääriäinen
1116a5662c
Merge pull request #1954 from loic/ticket8261
...
Refs #8261 -- Fixed regression introduced by fd219fa
.
2013-11-21 01:35:21 -08:00
Loic Bistuer
8e670a0e50
Refs #8261 -- Fixed regression introduced by fd219fa
.
...
ModelAdmin displayed the "View on site" link even if the Model didn't
define the `get_absolute_url()` method.
2013-11-21 16:26:49 +07:00
Claude Paroz
fafb6cf049
Fixed #21472 -- Fixed inline formsets display when parent pk is 0
...
Thanks agale031176@gmail.com for the report.
2013-11-20 21:36:20 +01:00
Baptiste Mispelon
8f5a688d00
Fixed #21458 -- Made check_for_language more resistant to malformed input.
...
Thanks to Sergey Sorokin for the report and to Bouke Haarsma for the review.
2013-11-20 17:51:53 +01:00
Baptiste Mispelon
331d79a77d
Fixed #21469 -- Allow set objects in Meta.unique_together.
...
Thanks to Tim for the review.
2013-11-20 17:26:26 +01:00
xuxiang
4cfe6ba6a3
Use classmethod
as a decorator.
2013-11-19 23:08:21 -05:00
Alex Gaynor
73b3c257e3
Changed shortcuts from being a package to just being a module
2013-11-19 15:34:20 -08:00
Dražen Lučanin
b5eef8535a
Recommended setuptools in the reuseable app tutorial.
...
setuptools has merged with distribute.
2013-11-19 13:57:17 -05:00
Baptiste Mispelon
ebfa508fa3
Added more examples to the get_object_or_404 documentation.
2013-11-19 19:23:44 +01:00
Alex Gaynor
170eedf583
Merge pull request #1943 from jantokhine/master
...
fixed typo in builtins.txt
2013-11-19 09:57:35 -08:00
Julia Antokhine
3c3be2e8ec
fixed typo in builtins.txt
2013-11-19 12:53:28 -05:00
Rocky Meza
42197e31aa
Fixed the base class note in the Date Views docs.
2013-11-19 10:23:59 -05:00
Vajrasky Kok
68b540c977
Fixed #21361 -- allowed access self.value() from SimpleListFilter lookup
...
Reviewed by Chris Medrela.
2013-11-19 09:14:22 +02:00
Unai Zalakain
4fdd51b732
Fixed #15179 -- middlewares not applied for test client login()
...
Requests made with django.test.Client.login() and logout() respect
defaults defined in django.test.Client instantiation and are processed
through middleware.
Thanks to Loic for the reviews.
2013-11-19 09:04:20 +02:00
Tim Graham
9348fc5628
Fixed typo in topics/http/sessions.txt.
2013-11-18 19:10:58 -05:00
Loic Bistuer
3f19b63f8b
Fixed some Signal.disconnect calls from 058e434
.
...
This would go unnoticed by the test suite because receivers are removed
automatically when they are garbage collected.
Changed all Signal.connect calls to hold strong references to ensure we
clean up after ourselves.
2013-11-18 14:38:28 -05:00
Claude Paroz
97ac22ebfc
Fixed #21457 -- Allowed fixture file name to contain dots
...
Thanks Keryn Knight for the report.
2013-11-18 20:32:13 +01:00
Baptiste Mispelon
bc0413cbc6
Added more internal links in the management command documentation.
2013-11-18 19:25:28 +01:00
Loic Bistuer
058e434064
Merged the signals and signals_regress test packages.
...
This patch also made the tests less likely to pollute the global state
in case of failure.
2013-11-18 12:42:51 -05:00
Claude Paroz
a0f3eeccf3
Fixed #21397 -- Re-added flexibility to TypedChoiceField coercion
...
Thanks Elec for the report and Simon Charette for the review.
2013-11-18 18:24:56 +01:00
Claude Paroz
4a00f132e0
Added release note for TypedChoiceField coerce limitation
...
Thanks Elec for the report and Simon Charette for the review.
Refs #21397 .
2013-11-18 18:08:59 +01:00
Tim Graham
ba63b9895b
Fixed #21240 -- Added 1.5 release note for OneToOneField/select_related change.
...
Thanks marcin at sokrates.pl.
2013-11-18 09:32:25 -05:00
Tim Graham
ffdae5b66d
Fixed #21404 -- Added session.set_expiry() note to 1.6 release notes.
...
Thanks pwr for the suggestion.
2013-11-18 07:58:43 -05:00
Chris Beaven
7ad3ab081c
Merge pull request #1931 from funkybob/admin-image-opt
...
Fixes #21455 - Optimise admin images
Every bit is sacred
Every bit is great
If a bit is wasted
God gets quite irate
2013-11-17 18:57:59 -08:00
Curtis Maloney
b2d2d7e60f
Optimise admin images
2013-11-18 13:33:28 +11:00
Claude Paroz
2b7fc36295
Updated 1.6.1 release notes
...
Partial forward port of e85baa813f
.
2013-11-17 21:22:06 +01:00
Anssi Kääriäinen
326539f6a4
Fixed a regression caused by fix for #21428
...
On Python 3 sorting Fields mixed with GenericForeignKeys doesn't work
as GenericForeignKey isn't a subclass of django.db.models.fields.Field.
Refs #21428 .
2013-11-16 20:54:36 +02:00
Anssi Kääriäinen
0e079e4331
Fixed #21428 -- editable GenericRelation regression
...
The GenericRelation refactoring removed GenericRelations from
model._meta.many_to_many. This had the side effect of disallowing
editable GenericRelations in ModelForms. Editable GenericRelations
aren't officially supported, but if we don't fix this we don't offer any
upgrade path for those who used the ability to set editable=True
in GenericRelation subclass.
Thanks to Trac alias joshcartme for the report and stephencmd and Loic
for working on this issue.
2013-11-16 20:07:35 +02:00
Claude Paroz
b642d540d4
Moved import at proper place in contrib.sites
2013-11-16 11:13:04 +01:00
Baptiste Mispelon
ceecc962ad
Fixed #21447 -- Restored code erroneously removed in 20472aa827
.
...
Also added some tests for HttpRequest.__repr__.
Note that the added tests don't actually catch the accidental code
removal (see ticket) but they do cover a codepath that wasn't tested
before.
Thanks to Tom Christie for the report and the original patch.
2013-11-16 01:09:35 +01:00
Tim Graham
d011714002
Fixed #21440 -- Typo #2 in topics/http/shortcuts.txt
...
Thanks alasdair.
2013-11-15 10:21:58 -05:00
glts
7e0ebd74c1
Fixed #21415 -- Replaced escape sequence by literal non-breaking space
...
Unfortunately, escape sequences (\x.. or \u....) do not fit well
with the gettext toolchain. Falling back to using literal char,
even if visibility is not ideal.
2013-11-15 15:32:46 +01:00
Claude Paroz
115fd140ab
Configure settings sooner in makemessages
...
As get_text_list is using translations, setup settings before
calling it.
2013-11-15 15:30:22 +01:00
DanSears
8ca3963ab2
Clarified MySQL Connector note.
2013-11-15 08:51:17 -05:00
Tim Graham
3ccc0253f2
Fixed #21425 -- Made order in which loggers are introduced consistent.
...
Thanks oubiga for the suggestion.
2013-11-15 08:39:40 -05:00
Alex Gaynor
10a09b8e60
Fixed the use of the -ise suffix, where -ize is prefered
2013-11-15 05:23:14 -08:00
Alex Gaynor
a90ffcac21
Merge pull request #1921 from loic/ticket21432
...
Fixed typo and slightly improved error message when db is missing time zone definitions.
2013-11-15 05:05:20 -08:00