1
0
mirror of https://github.com/django/django.git synced 2025-03-16 12:20:46 +00:00

13957 Commits

Author SHA1 Message Date
Loic Bistuer
3860d5e8f8 [1.5.x] Reworked docs for ModelForm validation.
Backport of fba6c2ede7 from master
2013-07-16 19:22:11 -04:00
Tim Graham
1a4233eef1 [1.5.x] Fixed some markup in docs/ref/templates/api.txt
Backport of 862a04a56d from master
2013-07-15 11:38:04 -04:00
David Binetti
d1a002a44c [1.5.x] Fixed grammatical error in auth docs
Backport of 51b50c47c7 from master
2013-07-14 12:35:58 -04:00
Tim Graham
8904e9fb98 [1.5.x] Fixed #20681 -- Prevented teardown_databases from attempting to tear down aliases
Thanks simonpercivall.

Backport of d9c580306c from master
2013-07-13 18:09:24 -04:00
Tim Graham
61c8c1b6dc [1.5.x] Fixed #17528 -- Documented that add() and remove() with a many-to-many relationship do not call Model.save()
Backport of 3cdeb572d7 from master
2013-07-12 06:22:29 -04:00
Christopher Medrela
80a7dd6f7f [1.5.x] Fixed #20735 -- clarified ManyToManyField constructor doc
Backport of ac223ff6d1 from master
2013-07-12 06:06:26 -04:00
Johan Charpentier
83119fd582 [1.5.x] Fixed #20053 -- Fixed index_together documentation
Backport of 186bff47 from master
2013-07-11 20:24:32 -04:00
Tim Graham
c278d81da4 [1.5.x] Fixed #20730 -- Fixed "Programmatically creating permissions" error.
Thanks glarrain for the report.

Backport of 684a606a4e from master
2013-07-11 11:07:59 -04:00
Mathijs de Bruin
2f9378223d [1.5.x] Fixed #20075 -- Fixed session test fail when using a cache other than LocMemCache.
As override_settings was used after the initialization of the session backend,
we need to use a new session backend here.

Backport of 8c1cc4b3b0 from master
2013-07-10 15:05:00 -04:00
Tim Graham
14b5073978 [1.5.x] Added a missing test requirement in the docs; refs #19196 2013-07-10 12:10:26 -04:00
Tim Graham
13546cae9c [1.5.x] Fixed #19196 -- Added test/requirements
Backport of 4d92a0bd86 from master.
2013-07-10 11:32:28 -04:00
Tim Graham
7bbf697132 [1.5.x] Fixed #20722 -- Fixed MemcachedCache backend get_many on Python 3.
Backport of 3c736207a3 from master
2013-07-09 11:58:02 -04:00
SusanTan
5192dbbf55 [1.5.x] Fixed #18261 -- Clarified 'project root directory'
Backport of ef3fddf26e from master
2013-07-09 07:16:45 -04:00
Tim Graham
0a91a8dbe3 [1.5.x] Fixed #18944 -- Documented PasswordResetForm's from_email argument as a backwards incompatible change for 1.3
Thanks DrMeers for the report.

Backport of dab921751d from master
2013-07-08 15:06:37 -04:00
Tim Graham
5567dc68e6 [1.5.x] Fixed #16965 -- Clarified Formset can_delete docs.
Thanks gregcorey@ for the suggestion.

Backport of 660c30ed95 from master
2013-07-08 12:21:34 -04:00
Tim Graham
f551d5a3de [1.5.x] Fixed #20493 -- Added a warning that objects may not be picklable across Django versions
Thanks cataliniacob for the suggestion and review.

Backport of 1084575163 from master
2013-07-08 09:59:06 -04:00
Tim Graham
abce5abe66 [1.5.x] Fixed #12346 -- Added a note on how to validate InlineFormSets.
Thanks johnsmith for the suggestion.

Backport of 181f63c22d from master
2013-07-08 08:32:28 -04:00
SusanTan
4140bfb93c [1.5.x] Fixed #20711 -- Fixed broken link in timesince.py docstring
Backport of d63327d843 from master.
2013-07-07 12:40:53 -04:00
Tim Graham
80673e20f2 [1.5.x] Fixed #14006 -- Documented that Field's 'description' attribute is interpolated with field.__dict__
Thanks abeld for the suggestion.

Backport of 2d96e660f9 from master.
2013-07-06 18:34:43 -04:00
Tim Graham
6c98458771 [1.5.x] Fixed #19539 -- Updated custom model fields example for Python 3.
Thanks astorije@ for the report.

Backport of b9fceadfd4 from master.
2013-07-05 06:54:42 -04:00
Tim Graham
95aa2182b7 [1.5.x] Fixed #19940 -- Made test.runner.setup_databases properly handle aliases for defau
Thanks simonpercivall.

Backport of 2cbd579efe from master.
2013-07-04 20:41:01 -04:00
Tim Graham
25d987b21e [1.5.x] Fixed #20134 -- Correct list of fields that UserManager requires.
Thanks semenov and pegler.

Backport of da5069f68f from master.
2013-07-04 10:20:09 -04:00
Tim Graham
82a6a956d5 [1.5.x] Fixed #20673 -- Clarified that HttpRequest.user uses AUTH_USER_MODEL.
Thanks littlepig for the report.

Backport of f407f75aae from master.
2013-07-04 09:33:40 -04:00
Tim Graham
fa37f45c32 [1.5.x] Fixed #12579 -- Noted QuerySet.get_or_create() depends on database unique constraints.
Thanks timmolendijk, jdunck, vijay_shanker, and loic84.

Backport of 428de2e339 from master.
2013-07-04 08:34:00 -04:00
Tim Graham
9c501e6638 [1.5.x] Fixed #20690 -- Mentioned LOCALE_PATHS earlier in translation docs.
Thanks rene@ for the suggestion.

Backport of 231e31c690 from master.
2013-07-04 05:45:34 -04:00
SusanTan
583f340d7d [1.5.x] Fixed #20609 -- Documented how to use request.user with RequestFactory
Thanks michel@ for the suggestion.

Backport of 75041d5ea3 from stable/1.5.x.
2013-07-03 11:12:04 -04:00
Claude Paroz
44df41e5fd [1.5.x] Fixed #20695 -- Fixed contrib.humanize translation syntax errors
Affected language: Mexican Spanish, Mongolian, Romanian, Turkish
Translations for 1.6 and master will be refetched from Transifex.
Thanks ruless at gmail.com for the report.
2013-07-03 16:39:26 +02:00
Tomáš Ehrlich
6151fdf930 [1.5.x] Fixed #20687 -- Added documentation for django.core.signing API.
Thanks Baptiste Mispelon for the suggestion.

Backport of c5bc98d7e1 from master.
2013-07-03 10:39:05 -04:00
Tim Graham
4453d8651a [1.5.x] Fixed #20691 -- Added a note for __str__() vs. __unicode__() and Python 3.
Thanks garrison for the suggestion.

Backport of 8a679386c3 from master.
2013-07-03 08:46:31 -04:00
Tim Graham
62a9abeff0 [1.5.x] Fixed #20677 - Typos in generic_inlineformset_factory docs.
Thanks Riley Strong for the report.

Backport of 3fd0ee5b46 from master
2013-06-29 14:17:38 -04:00
Baptiste Mispelon
def1881370 [1.5.x] Fixed missing slash in reusable apps tutorial.
Backport of 5caced89e0ac2f942b68bc5f163d156a42880f16 from master.
2013-06-28 09:52:25 +02:00
jktravis
b91e138405 Fixed #20670 -- Fixed project layout in reusable apps tutorial.
Backport of 70d3adf9f2ebfdfc9e64376b71b596ebb12d77f8 from master.
Thanks to nicklasp for the report.
2013-06-28 09:50:59 +02:00
Trey Hunner
058ad52b3d [1.5.x] Added missing preposition in documentation
Backport of 2ec54e7fbc from master
2013-06-27 18:03:39 -04:00
Ken Bolton
ceff19805e [1.5.x] Fixed typo in docs/ref/signals.txt
Backport of 6fcb7ba842 from master
2013-06-27 17:53:54 -04:00
Baptiste Mispelon
20295f2788 [1.5.x] Fixed #20665 -- Missing backslash in sitemaps documentation
Backport of 5005303ae7919eef26dab9f8ba279696966ebf1d from master.
2013-06-27 09:44:17 +02:00
Daniel Izquierdo
030ef4d1af [1.5.x] Fixed #20654 -- Fixed type of m2m_changed's pk_set arg in docs
Backport of 9a2b07f1b4 from master
2013-06-25 07:52:15 -04:00
Aymeric Augustin
02619227a9 [1.5.x] Fixed #20636 -- Stopped stuffing values in the settings.
In Django < 1.6, override_settings restores the settings module that was
active when the override_settings call was executed, not when it was
run. This can make a difference when override_settings is applied to a
class, since it's executed when the module is imported, not when the
test case is run.

In addition, if the settings module for tests is stored alongside the
tests themselves, importing the settings module can trigger an import
of the tests. Since the settings module isn't fully imported yet,
class-level override_settings statements may store a reference to an
incorrect settings module. Eventually this will result in a crash during
test teardown because the settings module restored by override_settings
won't the one that was active during test setup.

While Django should prevent this situation in the future by failing
loudly in such dubious import sequences, that change won't be backported
to 1.5 and 1.4. However, these versions received the "allowed hosts"
patch and they're prone to "AttributeError: 'Settings' object has no
attribute '_original_allowed_hosts'". To mitigate this regression, this
commits stuffs _original_allowed_hosts on a random module instead of the
settings module.

This problem shouldn't occur in Django 1.6, see #20290, but this patch
will be forward-ported for extra safety.

Also tweaked backup variable names for consistency.
2013-06-24 20:40:19 +02:00
Tim Graham
7e6c0387b3 [1.5.x] Clarified get_list_or_404 docs, refs #14150.
Backport of e161e4ff11 from master
2013-06-24 07:03:29 -04:00
Simon Meers
11a8a7f266 [1.5.x] Corrected minor typos in FileUploadHandler.receive_data_chunk docs.
Backport of 6466a08 from master.
2013-06-24 14:11:08 +10:00
Baptiste Mispelon
4821a99ca4 [1.5.x] Fixed errors and inconsistencies in CBV topic documentation.
Backport of bd9fbd1497edc585c5bec28c7d4bc8d1afd1943b from master.
2013-06-23 00:29:59 +02:00
Tim Graham
519fdacf51 Fixed #20634 - Corrected doc mistake re: staticfiles finders strategy.
Thanks claudep for the catch and bmispelon for the research.

Backport of 9be93aa809 from master.
2013-06-21 15:00:06 -04:00
James Bennett
9b0604e514 [1.5.x] Fixed #19881 -- Documented that get_next/previous_by_FOO uses default manager.
Backport of ba610cb319 from master
2013-06-21 13:16:51 -04:00
Baptiste Mispelon
ee8996d8a6 [1.5.x] Fixed #20612 -- Fixed incorrect wording in CBV documentation
Thanks to ndokos for the report.

Backport of b53ed5ac55d5881f129c4921199af355e2b13565 from master.
2013-06-21 17:53:10 +02:00
Tim Graham
843802ec26 [1.5.x] Fixed #19319 -- Updated example httpd.conf for Apache 2.4
Thanks colinnkeenan@ for the report.

Backport of 7314007c5b from master
2013-06-20 13:35:59 -04:00
Tim Graham
b5f8339211 [1.5.x] Fixed error in last commit. Thanks Simon Charette.
Backport of 6ef199a08e from master
2013-06-20 10:43:41 -04:00
Harm Geerts
891d003353 [1.5.x] Modified tutorial 3 to use RequestContext in place of Context.
Backport of df4a74d709 from master
2013-06-20 10:01:13 -04:00
Baptiste Mispelon
f171ed6b68 Fixed broken reference in documentation. 2013-06-19 10:39:01 +02:00
Aymeric Augustin
9d86550a70 [1.5.x] Fixed #20615 -- Added trove classifiers for major Python versions.
Backport of efe6e160.
2013-06-18 13:26:41 +02:00
Baptiste Darthenay
a952044228 [1.5.x] Fixed #20614 -- Typo in documentation.
Backport of 39b245fd76 from master
2013-06-17 07:01:48 -04:00
Tim Graham
e411e99312 [1.5.x] Fixed #20604 - Fixed file example in docs.
Thanks Chris Lasher for the report.

Backport of a1122e14a6 from master
2013-06-14 21:29:20 -04:00