Tim Graham
93cffc3b37
Added missing markup to docs.
2013-03-22 13:50:07 -04:00
Tim Graham
f7795e968d
Fixed #17935 - Clarified intro of topics/files.txt.
...
Thanks guettli for the suggestion.
2013-03-22 06:01:51 -04:00
Andrew Gorcester
f9ab543720
Fixed #20084 -- Provided option to validate formset max_num on server.
...
This is provided as a new "validate_max" formset_factory option defaulting to
False, since the non-validating behavior of max_num is longstanding, and there
is certainly code relying on it. (In fact, even the Django admin relies on it
for the case where there are more existing inlines than the given max_num). It
may be that at some point we want to deprecate validate_max=False and
eventually remove the option, but this commit takes no steps in that direction.
This also fixes the DoS-prevention absolute_max enforcement so that it causes a
form validation error rather than an IndexError, and ensures that absolute_max
is always 1000 more than max_num, to prevent surprising changes in behavior
with max_num close to absolute_max.
Lastly, this commit fixes the previous inconsistency between a regular formset
and a model formset in the precedence of max_num and initial data. Previously
in a regular formset, if the provided initial data was longer than max_num, it
was truncated; in a model formset, all initial forms would be displayed
regardless of max_num. Now regular formsets are the same as model formsets; all
initial forms are displayed, even if more than max_num. (But if validate_max is
True, submitting these forms will result in a "too many forms" validation
error!) This combination of behaviors was chosen to keep the max_num validation
simple and consistent, and avoid silent data loss due to truncation of initial
data.
Thanks to Preston for discussion of the design choices.
2013-03-21 01:27:24 -07:00
Claude Paroz
a9ee0e2970
Fixed #20096 -- Added link to the Greek localflavor app
2013-03-20 17:08:08 +01:00
Aymeric Augustin
6197935152
Fixed #19968 -- Dropped support for PostgreSQL < 8.4.
2013-03-18 21:16:29 +01:00
Aymeric Augustin
f3a6d74db9
Minor docs fix for e11ccc76
.
2013-03-17 22:43:49 +01:00
Aymeric Augustin
e11ccc76d3
Updated bundled version of six.
2013-03-17 10:44:28 +01:00
Aymeric Augustin
f8c7c8f27b
Merge pull request #901 from giamfreeg/master
...
Fixed an erroneous import in example code of docs (class-based-views/intro).
2013-03-15 06:23:21 -07:00
Aymeric Augustin
3f2befc931
Deprecated django.views.defaults.shortcut.
2013-03-14 20:30:23 +01:00
Claude Paroz
50eb70b08f
Fixed #20032 -- Documented how to simulate the absence of a setting
...
Thanks Ram Rachum for the report.
2013-03-13 23:14:26 +01:00
Pablo Sanfilippo
bd68f701b1
Fixed an erroneous import in example code.
2013-03-13 14:16:27 -03:00
Aymeric Augustin
5d8342f321
Proof-read and adjusted the transactions docs.
2013-03-13 15:17:41 +01:00
Aymeric Augustin
83a416f5e7
Made atomic usable when autocommit is off.
...
Thanks Anssi for haggling until I implemented this.
This change alleviates the need for atomic_if_autocommit. When
autocommit is disabled for a database, atomic will simply create and
release savepoints, and not commit anything. This honors the contract of
not doing any transaction management.
This change also makes the hack to allow using atomic within the legacy
transaction management redundant.
None of the above will work with SQLite, because of a flaw in the design
of the sqlite3 library. This is a known limitation that cannot be lifted
without unacceptable side effects eg. triggering arbitrary commits.
2013-03-13 15:17:40 +01:00
Aymeric Augustin
e654180ce2
Improved the API of set_autocommit.
2013-03-11 15:10:58 +01:00
Aymeric Augustin
4dbd1b2dd8
Used commit_on_success_unless_managed to make ORM operations atomic.
2013-03-11 15:05:05 +01:00
Aymeric Augustin
107d9b1d97
Added an option to disable the creation of savepoints in atomic.
2013-03-11 15:05:04 +01:00
Aymeric Augustin
189fb4e294
Added a note about long-running processes.
...
There isn't much else to say, really.
2013-03-11 15:05:04 +01:00
Aymeric Augustin
17cf29920b
Added an explanation of transactions and grouped low-level APIs.
2013-03-11 15:05:02 +01:00
Aymeric Augustin
ffe41591e7
Updated the documentation for savepoints.
...
Apparently django.db.transaction used to be an object.
2013-03-11 15:04:10 +01:00
Aymeric Augustin
ac37ed21b3
Deprecated TransactionMiddleware and TRANSACTIONS_MANAGED.
...
Replaced them with per-database options, for proper multi-db support.
Also toned down the recommendation to tie transactions to HTTP requests.
Thanks Jeremy for sharing his experience.
2013-03-11 15:04:05 +01:00
Aymeric Augustin
7c46c8d5f2
Added some assertions to enforce the atomicity of atomic.
2013-03-11 14:48:55 +01:00
Aymeric Augustin
d7bc4fbc94
Implemented an 'atomic' decorator and context manager.
...
Currently it only works in autocommit mode.
Based on @xact by Christophe Pettus.
2013-03-11 14:48:55 +01:00
Aymeric Augustin
4b31a6a9e6
Added support for savepoints in SQLite.
...
Technically speaking they aren't usable yet.
2013-03-11 14:48:55 +01:00
Aymeric Augustin
5e27debc5c
Enabled database-level autocommit for all backends.
...
This is mostly a documentation change.
It has the same backwards-incompatibility consequences as those
described for PostgreSQL in a previous commit.
2013-03-11 14:48:54 +01:00
Aymeric Augustin
f515619494
Added an API to control database-level autocommit.
2013-03-11 14:48:53 +01:00
Loic Bistuer
6983a1a540
Fixed #15363 -- Renamed and normalized to `get_queryset` the methods that return a QuerySet.
2013-03-08 10:11:45 -05:00
Claude Paroz
4cccb85e29
Fixed #19997 -- Added custom EMPTY_VALUES to form fields
...
Thanks Loic Bistuer for the report and the patch.
2013-03-07 15:22:03 +01:00
Michael Manfre
bb998c9fec
Update link to django-mssql project
2013-03-06 12:12:42 -05:00
Tobias Carlander
df7668a9e4
Fix Typo explicitly. Fixes #19971
2013-03-03 22:34:10 +04:00
Aymeric Augustin
97afc49bb0
Removed unnecessary imports.
2013-03-03 16:07:38 +01:00
Tim Graham
fe5d9fe5fe
Fixed #19962 - Added a note about SESSION_EXPIRE_AT_BROWSER_CLOSE and browsers that persist sessions.
...
Thanks David Sanders.
2013-03-02 10:11:23 -05:00
Tim Graham
d009ffe436
Fixed #19937 - Typo in class-based views intro.
2013-02-28 08:25:14 -05:00
Tim Graham
226a9fb2ea
Merge pull request #858 from intgr/py3kdoc-fix
...
Fixed a typo in Python 3 porting guide.
2013-02-27 13:16:55 -08:00
Claude Paroz
b0ba21db07
Fixed #19926 -- Fixed a link to code example in queries docs
...
Thanks Randy Salvo for the report.
2013-02-27 21:30:54 +01:00
Tim Graham
2108941677
Fixed #16807 - Added a class-based views intro.
...
Thanks Preston Holmes for the text.
2013-02-27 07:13:55 -05:00
Marti Raudsepp
fba6df19b5
[py3] str.decode does not exist; str.encode was intended
2013-02-26 23:28:47 +02:00
Tim Graham
9ce1b6191b
Fixed #19922 - Typo in translation docs.
...
Thanks amoebob for the report.
2013-02-26 15:12:28 -05:00
Aymeric Augustin
0836670c5c
Fixed #6195 -- Documented caching options for javascript_catalog.
2013-02-25 22:29:38 +01:00
Ben Konrath
d546259647
Fixed #19394 --Added note about auth forms and custom user models.
2013-02-24 07:55:38 -08:00
Zbigniew Siciarz
0a8402eb05
Test case and docs for custom context data in feeds
...
Thanks Paul Winkler for the initial patch. (Ref #18112 ).
2013-02-24 08:33:20 -06:00
Florian Apolloner
4506ae0497
Merge pull request #717 from slurms/ticket_19746
...
Fixed #19746 -- Allow deserialization of pk-less data
2013-02-24 06:31:14 -08:00
Tomek Paczkowski
99edbe0e27
Fixed #19253 -- Extracted template cache key building logic
...
Introduced a public function
django.core.cache.utils.make_template_fragment_key
Thanks @chrismedrela for fruitful cooperation.
2013-02-24 14:32:45 +01:00
Aymeric Augustin
b6aede3268
Merge pull request #815 from zerok/tickets/11971
...
Fixed #11971 -- Documented the serialization formats
2013-02-24 02:18:32 -08:00
Horst Gutmann
5612f54bd5
Added more details about the various serialization formats.
2013-02-24 10:58:03 +01:00
Tim Graham
cf890c110e
Added an example of "default" database dictionary left blank; refs #19775 .
...
Thanks wsmith323 for the patch.
2013-02-23 16:01:43 -05:00
Tim Graham
24a2bcbcdd
Fixed #19402 - Clarified purpose of CustomUser.REQUIRED_FIELDS
...
Thanks pydanny for the report and ptone for the patch.
2013-02-23 15:42:56 -05:00
Tim Graham
4c05fdb467
Fixed #19579 - Documented that "providing_args" is purely documentational.
2013-02-23 15:33:43 -05:00
Tim Graham
31bcb102b2
Fixed #19775 - Clarified requirements of the "default" database.
...
Thanks monkut for the report and wsmith323 for the patch.
2013-02-23 15:21:35 -05:00
Horst Gutmann
2f4a4703e1
Fixed #19758 -- Avoided leaking email existence through the password reset form.
2013-02-23 14:31:21 +01:00
Claude Paroz
7ec2a21be1
Fixed #19686 -- Added HTML5 number input type
...
Thanks Simon Charette for his help on the patch. Refs #16630 .
2013-02-23 10:18:08 +01:00
Preston Holmes
649118961c
Fixed #19868 -- Clarified purpose of custom user example
2013-02-20 15:32:35 -08:00
Tim Graham
bd006e00e4
Merge pull request #737 from hrbonz/docs_CBV_generic_views_typo
...
Fixed typo in docs/topics/class-based-views/generic-display.txt
2013-02-19 13:30:28 -08:00
Aymeric Augustin
35c991aa06
Added a default limit to the maximum number of forms in a formset.
...
This is a security fix. Disclosure and advisory coming shortly.
2013-02-19 11:23:30 -07:00
Carl Meyer
d51fb74360
Added a new required ALLOWED_HOSTS setting for HTTP host header validation.
...
This is a security fix; disclosure and advisory coming shortly.
2013-02-19 11:23:29 -07:00
Tim Graham
00031b73bd
Updated a couple admonitions to use the warning directive.
2013-02-19 11:31:41 -05:00
Stefan "hr" Berder
22d5e4b4af
Update docs/topics/class-based-views/generic-display.txt
...
simple typo in "Making friendly template contexts"
2013-02-19 16:01:06 +08:00
Tim Graham
64d0f89ab1
Fixed #19717 - Removed mentions of "root QuerySet" in docs.
...
Thanks julien.aubert.mail@ for the report and James Pic for the patch.
2013-02-18 09:35:22 -05:00
Alex Hunley
976dc07baf
Removed a misleading examples from documentations ala ticket #19719
2013-02-16 14:30:55 -05:00
Russell Keith-Magee
91c26eadc9
Refs #14881 -- Document that User models need to have an integer primary key.
...
Thanks to Kaloian Minkov for the reminder about this undocumented requirement.
2013-02-16 10:21:05 +08:00
Russell Keith-Magee
f5e4a699ca
Fixed #19822 -- Added validation for uniqueness on USERNAME_FIELD on custom User models.
...
Thanks to Claude Peroz for the draft patch.
2013-02-15 09:00:55 +08:00
Claude Paroz
668d0b8d49
Fixed #19823 -- Fixed memcached code example in cache docs
2013-02-14 11:23:52 +01:00
Aymeric Augustin
c4841b3de4
Merge pull request #719 from JonLoy/ticket_19808
...
Fixed #19808 -- Typo in example
2013-02-12 06:24:22 -08:00
JonLoy
74003ca36b
Fixed #19808 Capitalization error in example text
2013-02-12 09:14:19 -05:00
Ramiro Morales
0560bfb705
Mention backward relationships in aggregate docs.
...
Thanks Anssi and Marc Tamlyn for reviewing.
Fixes #19803 .
2013-02-12 09:36:29 -03:00
Nick Sandford
278dad5b41
Fixed #19746 -- Allow deserialization of pk-less data
2013-02-12 17:10:42 +08:00
Ramiro Morales
112c6e987d
Typo in i18n docs.
2013-02-07 19:57:26 -03:00
Tim Graham
43efefae69
Fixed #19756 - Corrected a ManyToMany example and added some links and markup.
2013-02-07 06:12:25 -05:00
Tim Graham
afa3e16334
Fixed #19743 - Documented some limitations of contrib.auth.
...
Thanks Aymeric for the suggestion.
2013-02-06 08:24:38 -05:00
Simon Charette
ea425ebcb2
Fixed a documentation warning introduced by 3f1c7b7
2013-02-06 01:07:42 -05:00
Aymeric Augustin
3f1c7b7053
Simplified default project template.
...
Squashed commit of:
commit 508ec9144b35c50794708225b496bde1eb5e60aa
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Tue Jan 29 22:50:55 2013 +0100
Tweaked default settings file.
* Explained why BASE_DIR exists.
* Added a link to the database configuration options, and put it in its
own section.
* Moved sensitive settings that must be changed for production at the
top.
commit 6515fd2f1aa73a86dc8dbd2ccf512ddb6b140d57
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Tue Jan 29 14:35:21 2013 +0100
Documented the simplified app & project templates in the changelog.
commit 2c5b576c2ea91d84273a019b3d0b3b8b4da72f23
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Tue Jan 29 13:59:27 2013 +0100
Minor fixes in tutorials 5 and 6.
commit 55a51531be8104f21b3cca3f6bf70b0a7139a041
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Tue Jan 29 13:51:11 2013 +0100
Updated tutorial 2 for the new project template.
commit 29ddae87bdaecff12dd31b16b000c01efbde9e20
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Tue Jan 29 11:58:54 2013 +0100
Updated tutorial 1 for the new project template.
commit 0ecb9f6e2514cfd26a678a280d471433375101a3
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Tue Jan 29 11:29:13 2013 +0100
Adjusted the default URLconf detection to account for the admin.
It's now enabled by default.
commit 5fb4da0d3d09dac28dd94e3fde92b9d4335c0565
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Tue Jan 29 10:36:55 2013 +0100
Added security warnings for the most sensitive settings.
commit 718d84bd8ac4a42fb4b28ec93965de32680f091e
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Mon Jan 28 23:24:06 2013 +0100
Used an absolute path for the SQLite database.
This ensures the settings file works regardless of which directory
django-admin.py / manage.py is invoked from.
BASE_DIR got a +1 from a BDFL and another core dev. It doesn't involve
the concept of a "Django project"; it's just a convenient way to express
relative paths within the source code repository for non-Python files.
Thanks Jacob Kaplan-Moss for the suggestion.
commit 1b559b4bcda622e10909b68fe5cab90db6727dd9
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Mon Jan 28 23:22:40 2013 +0100
Removed STATIC_ROOT from the default settings template.
It isn't necessary in development, and it confuses beginners to no end.
Thanks Carl Meyer for the suggestion.
commit a55f141a500bb7c9a1bc259bbe1954c13b199671
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Mon Jan 28 23:21:43 2013 +0100
Removed MEDIA_ROOT/URL from default settings template.
Many sites will never deal with user-uploaded files, and MEDIA_ROOT is
complicated to explain.
Thanks Carl Meyer for the suggestion.
commit 44bf2f2441420fd9429ee9fe1f7207f92dd87e70
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Mon Jan 28 22:22:09 2013 +0100
Removed logging config.
This configuration is applied regardless of the value of LOGGING;
duplicating it in LOGGING is confusing.
commit eac747e848eaed65fd5f6f254f0a7559d856f88f
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Mon Jan 28 22:05:31 2013 +0100
Enabled the locale middleware by default.
USE_I18N is True by default, and doesn't work well without
LocaleMiddleware.
commit d806c62b2d00826dc2688c84b092627b8d571cab
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Mon Jan 28 22:03:16 2013 +0100
Enabled clickjacking protection by default.
commit 99152c30e6a15003f0b6737dc78e87adf462aacb
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Mon Jan 28 22:01:48 2013 +0100
Reorganized settings in logical sections, and trimmed comments.
commit d37ffdfcb24b7e0ec7cc113d07190f65fb12fb8a
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Mon Jan 28 16:54:11 2013 +0100
Avoided misleading TEMPLATE_DEBUG = DEBUG.
According to the docs TEMPLATE_DEBUG works only when DEBUG = True.
commit 15d9478d3a9850e85841e7cf09cf83050371c6bf
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Mon Jan 28 16:46:25 2013 +0100
Removed STATICFILES_FINDERS/TEMPLATE_LOADERS from default settings file.
Only developers with special needs ever need to change these settings.
commit 574da0eb5bfb4570883756914b4dbd7e20e1f61e
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Mon Jan 28 16:45:01 2013 +0100
Removed STATICFILES/TEMPLATES_DIRS from default settings file.
The current best practice is to put static files and templates in
applications, for easier testing and deployment.
commit 8cb18dbe56629aa1be74718a07e7cc66b4f9c9f0
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Mon Jan 28 16:24:16 2013 +0100
Removed settings related to email reporting from default settings file.
While handy for small scale projects, it isn't exactly a best practice.
commit 8ecbfcb3638058f0c49922540f874a7d802d864f
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Tue Jan 29 18:54:43 2013 +0100
Documented how to enable the sites framework.
commit 23fc91a6fa67d91ddd9d71b1c3e0dc26bdad9841
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Mon Jan 28 16:28:59 2013 +0100
Disabled the sites framework by default.
RequestSite does the job for single-domain websites.
commit c4d82eb8afc0eb8568bf9c4d12644272415e3960
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Tue Jan 29 00:08:33 2013 +0100
Added a default admin.py to the application template.
Thanks Ryan D Hiebert for the suggestion.
commit 4071dc771e5c44b1c5ebb9beecefb164ae465e22
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Mon Jan 28 10:59:49 2013 +0100
Enabled the admin by default.
Everyone uses the admin.
commit c807a31f8d89e7e7fd97380e3023f7983a8b6fcb
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Mon Jan 28 10:57:05 2013 +0100
Removed admindocs from default project template.
commit 09e4ce0e652a97da1a9e285046a91c8ad7a9189c
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Mon Jan 28 16:32:52 2013 +0100
Added links to the settings documentation.
commit 5b8f5eaef364eb790fcde6f9e86f7d266074cca8
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Mon Jan 28 11:06:54 2013 +0100
Used a significant example for URLconf includes.
commit 908e91d6fcee2a3cb51ca26ecdf12a6a24e69ef8
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Mon Jan 28 16:22:31 2013 +0100
Moved code comments about WSGI to docs, and rewrote said docs.
commit 50417e51996146f891d08ca8b74dcc736a581932
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Mon Jan 28 15:51:50 2013 +0100
Normalized the default application template.
Removed the default test that 1 + 1 = 2, because it's been committed
way too many times, in too many projects.
Added an import of `render` for views, because the first view will
often be:
def home(request):
return render(request, "mysite/home.html")
2013-02-04 13:21:36 +01:00
Tim Graham
2c173ff3b4
Fixed a typo in docs/topics/auth/customizing.txt
2013-02-03 13:23:16 -05:00
Julien Phalip
293f7a2114
Fixed #17797 -- Enabled support for PATCH requests in the dummy test client. Thanks to pfarmer for the suggestion and initial patch.
2013-02-02 18:22:40 -08:00
Tim Graham
fdaaa24171
Fixed #19700 - Added documentation for BoundField.field.
...
Thanks Tiberiu Ana for the report and patch.
2013-02-02 08:34:42 -05:00
Tim Graham
bdb5f28714
Merge pull request #682 from LucianU/master
...
Fixed #19690 - Removed unused import in doc examples
2013-02-01 16:18:05 -08:00
Ramiro Morales
7947c9e3a6
Deprecated undocumented warnings manipulation testing tools.
2013-01-31 14:57:45 -03:00
Aymeric Augustin
89cb771be7
Fixed #19692 -- Completed deprecation of mimetype in favor of content_type.
...
Thanks Tim for the report and initial patch.
2013-01-31 13:54:40 +01:00
Aymeric Augustin
3f1a0c0040
Fixed #19160 -- Made lazy plural translations usable.
...
Many thanks to Alexey Boriskin, Claude Paroz and Julien Phalip.
2013-01-30 20:28:16 +01:00
Ramiro Morales
47ddd6a408
Fixed #19552 -- Enhanced makemessages handling of ``{# #}``-style template comments.
...
They are simply ignored now. This allows for a more correct behavior when
they are placed before translatable constructs on the same line.
Previously, the latter were wrongly ignored because the former were
preserved when converting template code to the internal Python-syntax
form later fed to xgettext but Python has no ``/* ... */``-style
comments.
Also, special comments directed to translators are now only taken in
account when they are located at the end of a line. e.g.::
{# Translators: ignored #}{% trans "Literal A" %}{# Translators: valid, associated with "Literal B" below #}
{% trans "Literal B" %}
Behavior of ``{% comment %}...{% endcomment %}``tags remains unchanged.
Thanks juneih at redpill-linpro dot com for the report and Claude for
his work on the issue.
2013-01-29 19:13:23 -03:00
Tim Graham
ee26797cff
Fixed typos in docs and comments
2013-01-29 10:55:55 -07:00
Lucian Ursu
c6560e4843
Fixed #19690 - Removed unused import
...
Removed an import of a class unused in the Ajax example.
2013-01-29 17:39:03 +02:00
Tim Graham
537d44b1b9
Fixed #19683 - Added a missing import in signing example.
...
Thanks sunsongxp@ for the report.
2013-01-29 06:12:33 -05:00
Claude Paroz
4f16376274
Added HTML5 email input type
...
Refs #16630 .
2013-01-28 22:10:50 +01:00
Aymeric Augustin
55416e235d
Fixed #19589 -- assertRegexpMatches is deprecated in Python 3.3.
2013-01-26 13:47:11 +01:00
Ramiro Morales
ce27fb198d
Revert "Patch by Claude for #16084."
...
This reverts commit 2babab0bb3
.
2013-01-25 13:58:37 -03:00
Ramiro Morales
2babab0bb3
Patch by Claude for #16084 .
2013-01-25 13:23:33 -03:00
Nick Sandford
93e79b45bc
Fixed #17416 -- Added widgets argument to inlineformset_factory and modelformset_factory
2013-01-24 08:58:17 +01:00
Justin Bronn
71c8539570
Fixed typo.
2013-01-23 12:36:48 -08:00
Tim Graham
0de2645c00
Fixed #19610 - Added enctype note to forms topics doc.
...
Thanks will@ for the suggestion.
2013-01-23 04:49:48 -05:00
Tim Graham
5b2d9bacd2
Fixed #19640 - Added inlineformset_factory to reference docs.
...
Thanks wim@ for the suggestion.
2013-01-22 07:55:34 -05:00
Tim Graham
0375244eae
Fixed #19628 - Noted that app for custom user model must be in INSTALLED_APPS
...
Thanks dpravdin and Jordan Messina.
2013-01-18 18:38:12 -05:00
Aymeric Augustin
1dd7492843
Fixed #19632 -- Bug in code sample.
...
Thanks grossmanandy at bfusa com and Simon Charette.
2013-01-18 20:52:04 +01:00
Aymeric Augustin
74d72e21b4
Fixed #19614 -- Missing request argument in render call.
...
Thanks Dima Pravdin for the report.
2013-01-15 14:36:47 +01:00
Tim Graham
43f89e0ad6
Fixed #19605 - Removed unused url imports from doc examples.
...
Thanks sergzach for the suggestion.
2013-01-15 07:50:26 -05:00
Tim Graham
ba50d3e05b
Fixed #14633 - Organized settings reference docs and added a topical index.
...
Thanks Gabriel Hurley for the original idea
and adamv for the draft patch.
2013-01-12 18:44:53 -05:00
Vinod Kurup
5362134090
Fixed code examples in which render() calls were missing `request` parameter.
2013-01-11 15:52:47 -03:00
Tim Graham
71d76ec011
Fixed #10239 - Added docs for modelform_factory
...
Thanks ingenieroariel for the suggestion and slurms for the review.
2013-01-11 06:00:19 -05:00
Preston Holmes
c8eff0dbcb
Fixed #19562 -- cleaned up password storage docs
2013-01-04 18:02:10 -08:00
Tim Graham
9b5f64cc6e
Fixed #19516 - Fixed remaining broken links.
...
Added -n to sphinx builds to catch issues going forward.
2013-01-02 18:32:57 -05:00
Tim Graham
695b2089e7
Fixed #19549 - Typo in docs/topics/auth/default.txt
2013-01-02 15:33:18 -05:00
Daniele Procida
08140aec5c
Tiny typo fixed in logging docs
2013-01-01 17:12:15 +00:00
Aymeric Augustin
7ee7599ab3
Removed versionadded/changed annotations dating back to 1.4.
2012-12-29 21:59:08 +01:00
Aymeric Augustin
ebd2598596
Removed django.contrib.markup.
2012-12-29 21:59:07 +01:00
Aymeric Augustin
f27a4ee327
Removed django.contrib.localflavor.
...
Each localflavor lives on as a separate app.
2012-12-29 21:59:06 +01:00
Tim Graham
067505ad19
Fixed broken links, round 4. refs #19516
2012-12-29 15:54:33 -05:00
Preston Holmes
11ded967c4
Fixed #19498 -- refactored auth documentation
...
The auth doc was a single page which had grown unwieldy.
This refactor split and grouped the content into sub-topics.
Additional corrections and cleanups were made along the way.
2012-12-28 11:06:12 -08:00
Tim Graham
b3a8c9dab8
Fixed broken links, round 3. refs #19516
2012-12-26 19:07:22 -05:00
Tim Graham
f56f6cfa58
Fixed links to DATABASE ENGINE setting. refs #19516
2012-12-24 15:38:05 -05:00
Ramiro Morales
d19109fd37
Fixed #19497 -- Refactored testing docs.
...
Thanks Tim Graham for the review and suggestions.
2012-12-21 21:59:06 -03:00
Tim Graham
52a2588df6
Fixed #19506 - Remove 'mysite' prefix in model example.
...
Thanks Mike O'Connor for the report.
2012-12-21 15:52:06 -05:00
Tim Graham
31f49f1396
Fixed #19442 - Clarified that raw SQL must be committed.
...
Thanks startup.canada for the suggestion.
2012-12-18 08:10:12 -05:00
Tim Graham
7df03268a4
Fixed #17312 - Warned about database side effects in tests.
...
Thanks jcspray for the suggestion.
2012-12-18 08:03:47 -05:00
Tim Graham
72a6ac568d
Fixed #19279 - Clarified order of database setup and Django install.
...
Thanks colinnkeenan for the suggestion.
2012-12-16 15:42:01 -05:00
Aymeric Augustin
dbdd253860
Replaced the test case hierarchy schema with a vector version.
...
The OmniGraffle source file is included for future use.
2012-12-16 21:07:12 +01:00
Aymeric Augustin
bf14aed3cc
Added PDF version of SVG file for latexpdf builds.
...
Thanks Tim Graham for reporting this issue and testing the fix.
2012-12-16 19:42:53 +01:00
Russell Keith-Magee
47e1df896b
Fixed #19412 -- Added PermissionsMixin to the auth.User heirarchy.
...
This makes it easier to make a ModelBackend-compliant (with regards to
permissions) User model.
Thanks to cdestigter for the report about the relationship between
ModelBackend and permissions, and to the many users on django-dev that
contributed to the discussion about mixins.
2012-12-15 22:44:47 +08:00
Russell Keith-Magee
bd414aed01
Fixed #19472 -- Documented the testing requirements and tools for custom User models.
...
Thanks to gcc for the report.
2012-12-15 22:44:47 +08:00
Russell Keith-Magee
1b646e656e
Fixed #19384 -- Documented the behavior of custom managers on abstract models.
...
This documents the behavior introduced by cc337a74
, which is BACKWARDS
INCOMPATIBLE for any attempt to invoke a method on a manager using the
abstract class as the calling class (e.g., AbstractBase.objects.do_something())
Thanks to mhsparks for the report.
2012-12-15 22:44:46 +08:00
Tim Graham
3984ccbcec
Merge pull request #585 from blongden/clarify_php_refs
...
Removed poor PHP references
2012-12-14 16:33:16 -08:00
Aymeric Augustin
a001f3c31e
Fixed #2304 -- Documented TRANSACTIONS_MANAGED.
2012-12-14 21:15:48 +01:00
Ben Longden
55a2d5b577
Removes PHP references
2012-12-13 13:20:47 +00:00
Anssi Kääriäinen
088d3bc2f8
Fixed #19462 -- Made assertQuerysetEqual detect undefined ordering
...
If there are more than one values to compare against and the qs isn't
ordered then assertQuerysetEqual will raise a ValueError.
2012-12-13 13:33:11 +02:00
Tim Graham
6cad5f212a
Fixed #19461 - Linked to psycopg in topics/install.txt
...
Thanks Chris Jerdonek for the suggestion.
2012-12-11 18:43:37 -05:00
Florian Apolloner
27560924ec
Fixed a security issue in get_host.
...
Full disclosure and new release forthcoming.
2012-12-10 22:11:40 +01:00
Aymeric Augustin
be9f2919e0
Edited the middleware doc for completeness, clarity, and consistency.
2012-12-09 22:30:01 +01:00
Aymeric Augustin
ae8e97384b
Fixed #12502 -- Improved middleware diagram.
2012-12-09 21:13:26 +01:00
Claude Paroz
8248d14029
Removed US localflavor-specific tests from core
...
Also fixes #9045 .
2012-12-08 21:07:59 +01:00
Val Neekman
cacafe89d0
fix a spelling error in docs
2012-12-02 16:26:00 -05:00
Tim Graham
008e625c66
Fixed #19400 - Typo in docs/topics/auth.txt
2012-11-30 15:10:52 -05:00
Tim Graham
ba2adc9c05
Fixed #19352 - Added an example in the QuerySet docs.
...
Thanks colinkeenan for the suggestion.
2012-11-27 18:21:55 -05:00
Russell Keith-Magee
fdb5c98d7e
Fixed #19218 -- Added documentation note on limitations of signals with custom User models.
...
Thanks to kunitoki@gmail.com for the report.
2012-11-24 13:53:44 +08:00
Aymeric Augustin
5c81e9de0f
Negligible style fix in docs.
2012-11-23 20:40:42 +01:00
WoLpH
eabb44417c
changed if statement to a slightly cleaner/less confusing variant
2012-11-22 22:29:39 +01:00
Tim Graham
0e3690d230
Fixed #18974 - Warned against using models.permalink
...
Thanks dstufft for the draft patch.
2012-11-22 16:08:51 -05:00
Aymeric Augustin
a026e480da
Fixed #16039 -- Made post_syncdb handlers multi-db aware.
...
Also reverted 8fb7a90026
. Refs #17055 .
2012-11-22 20:53:59 +01:00
Jannis Leidel
3fb83729b9
Merge branch 'ticket_19325' of https://github.com/hannesstruss/django into hannesstruss-ticket_19325
2012-11-22 10:05:08 +01:00
Tim Graham
e2b1808196
Fixed #19335 - Typo and cleanups in docs/topics/class-based-views/index.txt
2012-11-21 19:06:17 -05:00
Hannes Struss
f9891f2087
Fixed #19325 - Made email backend of AdminEmailHandler configurable
2012-11-20 11:23:12 +01:00
Jannis Leidel
1520748dac
Fixed #2550 -- Allow the auth backends to raise the PermissionDenied exception to completely stop the authentication chain. Many thanks to namn, danielr, Dan Julius, Łukasz Rekucki, Aashu Dwivedi and umbrae for working this over the years.
2012-11-17 20:24:54 +01:00
Alex Gaynor
1e34fd3c03
fixed a broken link in the docs
2012-11-13 14:48:23 -08:00
David Cramer
54fbe6ce5f
Correct link to Sentry
...
django-sentry is no longer maintained, and sentry is the replacement.
2012-11-13 13:51:50 -08:00
Aymeric Augustin
00ff69a827
Fixed #19283 -- Fixed typo in imports in CBV docs.
2012-11-13 20:46:29 +01:00
Aymeric Augustin
4c5cea7073
Merge pull request #218 from mgrouchy/ticket_18582
...
Fixed #18582 -- Added a no-op close to BaseCache
2012-11-11 07:18:45 -08:00
Tim Graham
e8f696097b
Fixed #19161 - Added missing clean_password method in custom user docs
...
Thanks DavidW for the report.
2012-11-06 19:44:49 -05:00
Tim Graham
620e0bba49
Fixed #19154 - Noted commit_manually requires commit/rollback for reads
...
Thanks als for the report.
2012-11-06 17:47:10 -05:00
Tim Graham
d3fd8a1512
Fixed #15591 - Clarified interaction between ModelForm and model validation.
2012-11-05 18:24:28 -05:00
Claude Paroz
4e8d9524c6
Fixed #6234 -- Removed obsolete note about json and ensure_ascii
...
Thanks aaron at cellmap.ca for the report.
2012-11-03 23:53:51 +01:00
Aymeric Augustin
fc10418fba
Fixed #18963 -- Used a subclass-friendly pattern
...
for Python 2 object model compatibility methods.
2012-11-03 22:07:35 +01:00
Markus Zapke-Gründemann
0546794397
Fixed #19230 -- Extended the handler403 documentation.
...
Added a paragraph on how to use the PermissionDenied exception to create a 403
response and use handler403.
2012-11-03 17:18:47 +01:00
Tim Graham
07361d1fd6
Fixed #19167 - Added a warning regarding module-level database queries
...
Thanks Daniele Procida for the patch.
2012-11-02 18:19:45 -04:00
Tim Graham
feaf9f279a
Fixed #15361 - Documented performance considerations for QuerySet.get()
...
Thanks mmcnickle for the patch.
2012-11-02 17:58:24 -04:00
Florian Apolloner
0d8432da55
Documented minimal python 3.2 version.
2012-11-02 10:51:10 +01:00
Aymeric Augustin
f975c4857d
Fixed #19225 -- Typo in shortcuts docs.
...
Thanks SunPowered for the report.
2012-11-02 09:29:55 +01:00
Tim Graham
af7ea808d8
Added WizardView.file_storage exception message and docs
...
Thanks Danilo Bargen for the patch.
2012-11-01 16:14:51 -04:00
Aymeric Augustin
146ed13a11
Fixed #17083 -- Allowed sessions to use non-default cache.
2012-10-31 09:46:16 +01:00
Brent O'Connor
d55c54a5da
The timeout variable wasn't defined, which was a little confusing.
2012-10-30 16:19:31 -07:00
Claude Paroz
9a02851340
Fixed #17744 -- Reset default file storage with setting_changed signal
2012-10-30 22:23:28 +01:00
Preston Holmes
4ea8105120
Fixed #19061 -- added is_active attribute to AbstractBaseUser
2012-10-28 23:04:03 -07:00
Aymeric Augustin
5fec97b9df
Fixed #18194 -- Expiration of file-based sessions
...
* Prevented stale session files from being loaded
* Added removal of stale session files in django-admin.py clearsessions
Thanks ej for the report, crodjer and Elvard for their inputs.
2012-10-28 09:19:38 +01:00
Aymeric Augustin
cd17a24083
Added optional kwargs to get_expiry_age/date.
...
This change allows for cleaner tests: we can test the exact output.
Refs #18194 : this change makes it possible to compute session expiry
dates at times other than when the session is saved.
Fixed #18458 : the existence of the `modification` kwarg implies that you
must pass it to get_expiry_age/date if you call these functions outside
of a short request - response cycle (the intended use case).
2012-10-27 23:15:45 +02:00
Claude Paroz
fc2681b22b
Fixed #17787 -- Documented reset caches by setting_changed signal
2012-10-27 21:55:50 +02:00
Florian Apolloner
b7d81715dc
Removed a redundant colon in the query docs.
...
Thanks to Berker Peksag for the patch.
2012-10-27 21:21:33 +02:00
Aymeric Augustin
83ba0a9d4b
Fixed #18978 -- Moved cleanup command to sessions.
...
This removes a dependency of 'core' on 'contrib'.
2012-10-27 18:31:00 +02:00
Claude Paroz
90c7656466
Fixed #19191 -- Corrected a typo in CustomUser docs
...
Thanks spleeyah for the report.
2012-10-26 10:23:33 +02:00
Aymeric Augustin
4b27813198
Fixed #7581 -- Added streaming responses.
...
Thanks mrmachine and everyone else involved on this long-standing ticket.
2012-10-20 20:05:11 +02:00
Claude Paroz
0775ab2955
Fixed #19132 -- Added example for creating custom lazy function
...
Thanks flagzeta@yahoo.it for the report and Luke Plant for his
expert assistance.
2012-10-18 09:02:20 +02:00
Preston Holmes
31dcaf49a0
Fixed an error in cookie documentation
2012-10-17 14:53:21 -07:00
Tim Graham
fd02bcff4a
Fixed #18548 - Clarified note regarding reusing model instances when form validation fails.
2012-10-16 20:39:13 -04:00
Tim Graham
9190d89829
Fixed #10936 - Tempered recommendation of SQLite - thanks Karen Tracey for the feedback.
2012-10-15 19:55:46 -04:00
Russell Keith-Magee
b3b3db3d95
Fixed #19067 -- Clarified handling of username in createsuperuser.
...
Thanks to clelland for the report, and Preston Holmes for the draft patch.
2012-10-13 13:36:07 +08:00
Russell Keith-Magee
c433fcb3fb
Fixed #19077 , #19079 -- Made USERNAME_FIELD a required field, and modified UserAdmin to match.
2012-10-13 11:44:50 +08:00
Tim Graham
5fb22329a1
Merge pull request #422 from elvard/18996
...
Fixed #18996 - Clarified overriden model methods not called on bulk operations
2012-10-12 16:45:45 -07:00
Tim Graham
470deb5cbb
Fixed #10936 - Noted that using SQLite for development is a good idea
2012-10-11 20:01:30 -04:00
Tim Graham
6b56aeec6e
Merge pull request #428 from donspaulding/patch-1
...
Removed extra indent in docs/topics/db/queries.txt
2012-10-11 16:19:32 -07:00
Tim Graham
dd0cbc6bdc
Fixed #16588 - Warned about field names that conflict with the model API
2012-10-11 18:05:12 -04:00
Ramiro Morales
0614e99fbd
More URL reversion docs typo fixes.
2012-10-11 15:40:38 -03:00
Tim Graham
0921b74e69
Merge pull request #437 from dmedvinsky/bug/docs-typo-reversing
...
Fixed typo in URL reversing docs
2012-10-11 03:15:39 -07:00
Tim Graham
06f5da3d78
Fixed #16817 - Added a guide of code coverage to contributing docs.
...
Thanks Pedro Lima for the draft patch.
2012-10-11 06:11:52 -04:00
Dmitry Medvinsky
b498ce8203
Fix typo in URLs reversing docs
2012-10-11 12:38:14 +04:00
Tim Graham
7ef2781ca0
Fixed #4501 - Documented how to use coverage.py with Django tests.
...
Thanks krzysiumed for the draft patch.
2012-10-10 20:03:27 -04:00
Anssi Kääriäinen
b625e8272b
Moved F() '&' and '|' to .bitand() and .bitor()
...
Done for consistency with Q() expressions and QuerySet combining. This
will allow usage of '&' and '|' as boolean logical operators in the
future. Refs #16211 .
2012-10-10 01:15:29 +03:00
Anssi Kääriäinen
a8b1861fc4
Revert "Fixed #16211 -- Added comparison and negation ops to F() expressions"
...
This reverts commit 28abf5f0eb
.
Conflicts:
docs/releases/1.5.txt
2012-10-10 01:15:29 +03:00
Ramiro Morales
ec1aad1671
Added section about URL reversion to URL mapper document.
2012-10-07 20:21:07 -03:00
Ramiro Morales
69035b0b1c
More URL mapping documentation fixes.
2012-10-06 16:35:22 -03:00
Ramiro Morales
b6b8a3f66b
Refactored URL mapping documentation.
...
Reorganized topic document so it introduces concepts form simple to more
complex. Moved reference parts to their own documents.
2012-10-06 11:27:20 -03:00
Claude Paroz
117e99511e
Added assertXML[Not]Equal assertions
...
This is especially needed to compare XML when hash randomization
is on, as attribute order may vary. Refs #17758 , #19038 .
Thanks Taylor Mitchell for the initial patch, and Ian Clelland for
review and cleanup.
2012-10-06 13:14:50 +02:00
Tim Graham
6d46c740d8
Fixed #17435 - Clarified that QuerySet.update returns the number of rows matched
2012-10-06 07:03:20 -04:00
Russell Keith-Magee
12f39be508
Fixed #19074 -- Corrected some minor issues with the new custom User docs.
...
Thanks to Bradley Ayers for the review.
2012-10-06 12:46:35 +08:00
Don Spaulding
70fac984c8
Fixed format-o in docs/topics/db/queries.txt
...
It appears that our infamous villain, Significant Whitespace,
has struck again.
In this episode, little Timmy finds himself trapped in a
code well. He need not despair, however, as Indentation Man
has heard his cries for help and sprung into action.
With his feline helper, Octocat, at his side, Indentation Man
races to the scene, flings open a web-based code editor, and with
terrific aplomb, frees Timmy to be the documentation he always
wanted to be.
Once again Goodness has prevailed. In the fight for readable
documentation, no stray whitespace will ever be able to
withstand the str.strip()ing nature of....INDENTATION MAN.
2012-10-05 19:17:00 -05:00
Tomáš Ehrlich
443999a1ee
Fixed #18996 - Docs on overriden model methods
2012-10-04 14:03:48 +02:00
Tim Graham
a1a5c0854f
Fixed #19051 - Fixed Selenium tearDownClass method; thanks glarrain for the report.
2012-10-04 06:45:22 -04:00
Preston Holmes
030b55393e
Removed incorrectly reintroduced 1.3 version notes
2012-10-01 14:53:21 -07:00
Preston Holmes
e7723683dc
Fixed #9279 -- Added ignorenonexistent option to loaddata
...
Thanks to Roman Gladkov for the initial patch and Simon Charette for review.
2012-09-30 23:40:27 -07:00
Michael Farrell
7cc4068c44
Fixed #18616 -- added user_login_fail signal to contrib.auth
...
Thanks to Brad Pitcher for documentation
2012-09-30 22:34:50 -07:00
Claude Paroz
8bd7b598b6
Fixed #18807 -- Made 404.html and 500.html optional
...
Thanks Aymeric Augustin for the report and Jannis Leidel for the
review.
2012-09-30 23:16:19 +02:00
Anssi Kääriäinen
d5a4f209c3
Fixed #18991 -- Allowed permission lookup by "if in"
...
When looking permissions from PermWrapper it is now possible to use
{% if "someapp.someperm" in perms %} instead of
{% if perms.someapp.someperm %}.
2012-09-30 19:38:16 +03:00
Anssi Kääriäinen
28abf5f0eb
Fixed #16211 -- Added comparison and negation ops to F() expressions
...
Work done by Walter Doekes and Trac alias knoeb. Reviewed by Simon
Charette.
2012-09-30 17:51:06 +03:00
Claude Paroz
f0f327bbfe
Fixed #18993 -- 'django' logger logs to console when DEBUG=True
...
Thanks Preston Holmes for the review.
2012-09-29 22:56:18 +02:00
Claude Paroz
a014ddfef2
Combined Django DEFAULT_LOGGING with user LOGGING config
...
Refs #18993 .
2012-09-29 22:56:18 +02:00
Tim Graham
84fa9099c6
Fixed two broken links introduced in recent commits.
2012-09-27 17:33:52 -04:00
Adrien Lemaire
2c8267bf3d
Fixed #17899 -- Rewrote [Ee]-mail to [Ee]mail
2012-09-26 14:14:51 +02:00
Russell Keith-Magee
70a0de37d1
Fixed #3011 -- Added swappable auth.User models.
...
Thanks to the many people that contributed to the development and review of
this patch, including (but not limited to) Jacob Kaplan-Moss, Anssi
Kääriäinen, Ramiro Morales, Preston Holmes, Josh Ourisman, Thomas Sutton,
and Roger Barnes, as well as the many, many people who have contributed to
the design discussion around this ticket over many years.
Squashed commit of the following:
commit d84749a0f0
Merge: 531e771
7c11b1a
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Wed Sep 26 18:37:04 2012 +0800
Merge remote-tracking branch 'django/master' into t3011
commit 531e7715da
Merge: 29d1abb
1f84b04
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Wed Sep 26 07:09:23 2012 +0800
Merged recent trunk changes.
commit 29d1abbe35
Merge: 8a527dd
54c81a1
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Mon Sep 24 07:49:46 2012 +0800
Merge remote-tracking branch 'django/master' into t3011
commit 8a527dda13
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Mon Sep 24 07:48:05 2012 +0800
Ensure sequences are reset correctly in the presence of swapped models.
commit e2b6e22f29
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Sun Sep 23 17:53:05 2012 +0800
Modifications to the handling and docs for auth forms.
commit 98aba856b5
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Sun Sep 23 15:28:57 2012 +0800
Improved error handling and docs for get_user_model()
commit 0229209c84
Merge: 6494bf9
8599f64
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Sun Sep 23 14:50:11 2012 +0800
Merged recent Django trunk changes.
commit 6494bf91f2
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Mon Sep 17 21:38:44 2012 +0800
Improved validation of swappable model settings.
commit 5a04cde342
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Mon Sep 17 07:15:14 2012 +0800
Removed some unused imports.
commit ffd535e413
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Sun Sep 16 20:31:28 2012 +0800
Corrected attribute access on for get_by_natural_key
commit 913e1ac84c
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Sun Sep 16 20:12:34 2012 +0800
Added test for proxy model safeguards on swappable models.
commit 280bf19e94
Merge: dbb3900
935a863
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Sun Sep 16 18:16:49 2012 +0800
Merge remote-tracking branch 'django/master' into t3011
commit dbb3900775
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Sun Sep 16 18:09:27 2012 +0800
Fixes for Python 3 compatibility.
commit dfd72131d8
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Sun Sep 16 15:54:30 2012 +0800
Added protection against proxying swapped models.
commit abcb027190
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Sun Sep 16 15:11:10 2012 +0800
Cleanup and documentation of AbstractUser base class.
commit a9491a8776
Merge: fd8bb4e
08bcb4a
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Sun Sep 16 14:46:49 2012 +0800
Merge commit '08bcb4aec1ed154cefc631b8510ee13e9af0c19d' into t3011
commit fd8bb4e3e4
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Sun Sep 16 14:20:14 2012 +0800
Documentation improvements coming from community review.
commit b550a6d06d
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Sun Sep 16 13:52:47 2012 +0800
Refactored skipIfCustomUser into the contrib.auth tests.
commit 52a02f1110
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Sun Sep 16 13:46:10 2012 +0800
Refactored common 'get' pattern into manager method.
commit b441a6bbc7
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Sun Sep 16 13:41:33 2012 +0800
Added note about backwards incompatible change to admin login messages.
commit 08bcb4aec1
Author: Anssi Kääriäinen <akaariai@gmail.com>
Date: Sat Sep 15 18:30:33 2012 +0300
Splitted User to AbstractUser and User
commit d9f5e5addb
Author: Anssi Kääriäinen <akaariai@gmail.com>
Date: Sat Sep 15 18:30:02 2012 +0300
Reworked REQUIRED_FIELDS + create_user() interaction
commit 579f152e4a
Merge: 9184972
93e6733
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Sat Sep 15 20:18:37 2012 +0800
Merge remote-tracking branch 'django/master' into t3011
commit 918497218c
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Sat Sep 15 20:18:19 2012 +0800
Deprecate AUTH_PROFILE_MODULE and get_profile().
commit 334cdfc1bb
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Sat Sep 15 20:00:12 2012 +0800
Added release notes for new swappable User feature.
commit 5d7bb22e8d
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Sat Sep 15 19:59:49 2012 +0800
Ensure swapped models can't be queried.
commit 57ac6e3d32
Merge: f2ec915
abfba3b
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Sat Sep 15 14:31:54 2012 +0800
Merge remote-tracking branch 'django/master' into t3011
commit f2ec915b20
Merge: 1952656
5e99a3d
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Sun Sep 9 08:29:51 2012 +0800
Merge remote-tracking branch 'django/master' into t3011
commit 19526563b5
Merge: 2c5e833
c4aa26a
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Sun Sep 9 08:22:26 2012 +0800
Merge recent changes from master.
commit 2c5e833a30
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Sun Sep 9 07:53:46 2012 +0800
Corrected admin_views tests following removal of the email fallback on admin logins.
commit 20d1892491
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Sun Sep 9 01:00:37 2012 +0800
Added conditional skips for all tests dependent on the default User model
commit 40ea8b8882
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Sat Sep 8 23:47:02 2012 +0800
Added documentation for REQUIRED_FIELDS in custom auth.
commit e6aaf65970
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Sat Sep 8 23:20:02 2012 +0800
Added first draft of custom User docs.
Thanks to Greg Turner for the initial text.
commit 75118bd242
Author: Thomas Sutton <me@thomas-sutton.id.au>
Date: Mon Aug 20 11:17:26 2012 +0800
Admin app should not allow username discovery
The admin app login form should not allow users to discover the username
associated with an email address.
commit d088b3af58
Author: Thomas Sutton <me@thomas-sutton.id.au>
Date: Mon Aug 20 10:32:13 2012 +0800
Admin app login form should use swapped user model
commit 7e82e83d67
Merge: e29c010
39aa890
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Fri Sep 7 23:45:03 2012 +0800
Merged master changes.
commit e29c010beb
Merge: 8e3fd70
30bdf22
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Mon Aug 20 13:12:57 2012 +0800
Merge remote-tracking branch 'django/master' into t3011
commit 8e3fd703d0
Merge: 507bb50
26e0ba0
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Mon Aug 20 13:09:09 2012 +0800
Merged recent changes from trunk.
commit 507bb50a92
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Mon Jun 4 20:41:37 2012 +0800
Modified auth app so that login with alternate auth app is possible.
commit dabe362836
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Mon Jun 4 20:10:51 2012 +0800
Modified auth management commands to handle custom user definitions.
commit 7cc0baf89d
Author: Russell Keith-Magee <russell@keith-magee.com>
Date: Mon Jun 4 14:17:28 2012 +0800
Added model Meta option for swappable models, and made auth.User a swappable model
2012-09-26 18:48:09 +08:00
Yohan Boniface
5a1bf7eccb
Fix little typo in cache documentation
2012-09-25 17:08:07 +02:00
Claude Paroz
fc69fff9ab
Fixed #14861 -- Moved logging config outside of Settings.__init__
...
Thanks donspaulding for the report and simonpercivall for the
initial patch.
2012-09-24 22:12:45 +02:00
Tim Graham
2aaa467a2a
Fixed #18057 - Documented that caches are not cleared after each test; thanks guettli for the suggestion.
2012-09-22 07:09:12 -04:00
Tim Graham
e758ecc628
Merge pull request #386 from clelland/ticket_15269
...
Fixed #15269 - Added documentation for get_caches function
2012-09-21 04:07:26 -07:00
Tim Graham
837425b425
Fixed #18934 - Removed versionadded/changed annotations for Django 1.3
2012-09-20 19:06:55 -04:00
Ian Clelland
2315f1a2ee
Add documentation for get_caches function
2012-09-20 12:07:34 -07:00
Tim Graham
acd74ffa35
Fixed #14829 - Added references to CBVs in the URLConf docs; thanks Andrew Willey for the suggestion.
2012-09-19 17:59:47 -04:00
Tim Graham
89e809c400
Merge pull request #195 from pydanny/ajax-docs-example
...
Added example of AJAX form submission for CBVs.
2012-09-17 16:02:07 -07:00
Marc Tamlyn
b16f8b5fbe
Add example of AJAX form submission.
...
Credit goes to @SystemParadox. Originally developed at #DjangoCon Europe
but wasn't tested enough to merge in.
For history, please see https://github.com/pydanny/django/pull/4
2012-09-17 08:56:43 +01:00
Camilo Nova
17149496a0
Fixes docs typo
2012-09-15 15:45:13 -05:00
Tim Graham
22242c510f
Fixed #16929 - Documented how to extend UserAdmin with UserProfile fields; thanks charettes for the draft example.
2012-09-15 07:38:34 -04:00
Tim Graham
a73838fde3
Fixed #11185 - Expanded docs on customizing widgets; thanks fadeev for the draft patch.
2012-09-15 06:22:00 -04:00
Karen Tracey
ffe8bc00bf
Replaced backwards-incompatible changes reference
...
The previously-referenced wiki page documents backwards-incompatible
changes from .96 to 1.0. Changed that referece to point to current
in-development release notes, which is where such changes are now
documented.
2012-09-09 12:53:32 -04:00
Carl Meyer
a78dd109e6
Fixed #15552 -- LOGIN_URL and LOGIN_REDIRECT_URL can take URLpattern names.
...
Thanks UloPe and Eric Florenzano for the patch, and Malcolm Tredinnick for
review.
2012-09-08 16:58:35 -06:00
Tim Graham
518c582966
Fixed #15906 - Documented HEAD method in CBVs; thanks zsiciarz for the patch.
2012-09-08 18:45:02 -04:00
James Bennett
5c5226a520
Fix typo: Non -> None
2012-09-08 16:14:13 -04:00
James Bennett
408c10e541
Untabify multi-db docs.
2012-09-08 16:08:01 -04:00
James Bennett
5d1f09f450
Ticket 18657: Fix inconsistent DB names in router example.
...
This rewrites the entire example to use the same DB names throughout,
and also is hopefully a bit more sensibly described. Additionally, the
missing import of the random module for choosing a read slave is
included in the example now.
2012-09-08 16:02:00 -04:00
Tim Graham
76bd33539f
Merge pull request #359 from nmartini/ticket_18832
...
Fixed #18832 - Updated ModelForm example fields to match note below
2012-09-08 10:34:11 -07:00
Michal Petrucha
86e149ae05
Fixed a typo in the Python 3 compatibility docs.
2012-09-08 18:54:33 +02:00
Nick Martini
571698997f
fixing modelforms example code, ticket #18832
2012-09-08 12:30:41 -04:00
Aymeric Augustin
e69348b4e7
Avoided mixing dates and datetimes in the examples.
...
Refs #16023 .
2012-09-08 11:00:04 -04:00
Tim Graham
b7d3b057f3
Fixed #18365 - Added a reminder of the context processor required for the set_language view.
...
Thanks Nick Martini for the patch.
2012-09-08 06:56:07 -04:00
Tim Graham
dc01e41d23
Fixed #15566 - Documented that update() doesn't honor DateField.auto_now
...
Thanks Shabda Raaj for the draft patch.
2012-09-08 06:38:41 -04:00
Malcolm Tredinnick
6add6170c0
Small reorganisation of initial parts of URL documentation.
...
Trying to move most of the introductory example stuff up to the top and
pushing the reference bits further down.
2012-09-07 19:12:14 -04:00
Aymeric Augustin
7435cc0167
Updated install docs to reflect Python 3 status.
...
Closes #17452 .
2012-09-07 17:12:11 -04:00
Alex Gaynor
3a10bcc917
Document ``six.assertRaisesRegex``.
2012-09-07 15:51:22 -04:00
James Bennett
257c4011cb
Merge pull request #331 from davidfischer/master
...
Ticket #17324 - Improve security docs with better CSRF explanation
2012-09-07 12:02:53 -07:00
Aymeric Augustin
e1a37d5537
[py3] Documented forwards-compatible aliases
...
that will be available as of version 1.4.2.
2012-09-07 11:57:46 -04:00
David Fischer
58786897a1
Formatting fix for host headers section
2012-09-06 16:10:08 -04:00
David Fischer
c65100248d
Added CSRF with HTTPS/HSTS and forwarding note
2012-09-06 16:08:14 -04:00
David Fischer
ba141e6906
Added note about Strict Transport Security (HSTS)
2012-09-06 15:13:31 -04:00
Matt Stevens
a7d831a305
Changes day to from 2 to 30
2012-09-03 16:31:37 +01:00
Matt Stevens
813241f655
Clarifies day and month in example queryset
2012-09-03 15:20:05 +01:00
Tim Graham
03ad7d3c20
Merge pull request #315 from streeter/auth-docs-cleanup-patch
...
Clarify some of the password reset docs
2012-09-01 15:05:18 -07:00
Tim Graham
c6088bc91d
Fixed #18840 - Added a mentioned of the upload_to parameter to the ModelForm example in file uploads.
2012-09-01 15:38:44 -04:00
Tim Graham
74c025d028
Fixed #13608 - Noted that template lookups use literal values.
2012-09-01 09:24:39 -04:00
Chris Streeter
fef641d164
Clarify some of the password reset docs
...
Some of the wording was copied from the change password section. Updated
the text to clarify that the we are talking about password resets.
2012-08-31 16:13:50 -07:00
Florian Apolloner
785980d30e
Merge pull request #310 from juanpex/master
...
fix documentation testing of Selenium WebDriverWait
2012-08-31 04:59:59 -07:00
Florian Apolloner
fc81854934
Merge pull request #311 from gutworth/py3-doc
...
Indexing bytes is the problem not slicing.
2012-08-31 04:56:42 -07:00
Tim Graham
141e6cd2ac
Fixed #18871 - Fixed typo in multi-db docs.
2012-08-30 06:45:11 -04:00
Claude Paroz
ebc773ada3
Replaced many smart_bytes by force_bytes
...
In all those occurrences, we didn't care about preserving the
lazy status of the strings, but we really wanted to obtain a
real bytestring.
2012-08-29 11:20:32 +02:00
Benjamin Peterson
c87b08d2a1
Indexing bytes is the problem not slicing.
2012-08-28 20:46:42 -04:00
juanpex
bfa3d5af34
fix documentation testing of Selenium WebDriverWait
...
According to the documentation of Selenium, WebDriverWait class has no timeout parameter and using the code fails.
http://selenium.googlecode.com/svn/trunk/docs/api/java/org/openqa/selenium/support/ui/FluentWait.html#until%28com.google.common.base.Predicate%29
2012-08-27 21:04:20 -03:00
Tim Graham
df7c1a13a0
Fixed #18804 - Reorganized class based views docs a bit; thanks anthonyb for the initial patch.
2012-08-25 08:13:43 -04:00
Tim Graham
e57338f2b9
Fixed #18847 - Updated for media examples to use static.example.com. Thanks Jamie Curle.
2012-08-24 08:23:50 -04:00
Carlos Palol
f200ffd701
Fixed typo in docs
2012-08-23 16:46:38 +02:00
Tim Graham
e06189f7ce
Merge pull request #297 from mjjohnson/ticket_17069
...
Fixed #17069 -- Added log filter example to docs.
2012-08-22 17:36:46 -07:00
Tim Graham
13d47c3f33
Fixed #18637 - Updated some documentation for aspects of models that are ModelForm specific, not admin specific.
...
Thanks Ben Sturmfels for the patch.
2012-08-21 17:38:16 -04:00
Tim Graham
3fd89d9903
Fixed #14885 - Clarified that ModelForm cleaning may not fully complete if the form is invalid.
...
Thanks Ben Sturmfels for the patch.
2012-08-21 17:32:53 -04:00
Michael Johnson
32ffcb21a0
Fixed #17069 -- Added log filter example to docs.
...
Added an example of filtering admin error emails (to exclude
UnreadablePostErrors) to the docs.
2012-08-21 09:01:11 -04:00
Alex Gaynor
831f2846dd
Fixed #18819 -- fixed some typos in the auth docs
2012-08-20 14:27:28 -07:00
Aymeric Augustin
1288572d92
Made an example more readable in the URLs docs.
2012-08-20 18:23:17 +02:00
Aymeric Augustin
4e82d61400
Added links in URLs doc for consistency.
2012-08-20 15:02:25 +02:00
Tim Graham
514a0013cd
Fixed #17180 - Emphasized the need to load the i18n template tag in each template that uses translations. Thanks stefan.freyr for the suggestion and buddylindsey for the draft patch.
2012-08-19 18:46:46 -04:00
Aymeric Augustin
7631fb8f37
Clarified a sentence in the Python 3 docs.
...
Thanks dstufft for the report.
2012-08-19 21:21:53 +02:00
Marc Tamlyn
268fa9631e
Fixed indentation in the Python3 docs
2012-08-19 20:04:52 +02:00
Aymeric Augustin
500fe9c639
[py3] Wrote Django-specific porting tips
...
and extended the existing Python 3 documentation.
2012-08-19 16:30:07 +02:00
Aymeric Augustin
4c1286cf78
[py3] Added compatibility import of thread/_thread
...
This commit fixes the auto-reload of the development server.
I should have done that change in ca07fda2
.
2012-08-18 10:56:56 +02:00
Preston Holmes
e437dd1d6b
Update docs/topics/class-based-views/index.txt
...
View class does not have a render_to_response method - so does not make sense for this mixin
2012-08-17 17:29:46 -07:00
Tim Graham
b1f18e95a5
Fixed #17183 - Added a note regarding LocaleMiddleware at the top of the i18n docs. Thanks krzysiumed for the patch.
2012-08-16 18:16:19 -04:00
Florian Apolloner
d2975718fe
Consistenly use _ as alias for ugettext_lazy in the i18n docs.
2012-08-13 16:54:13 +02:00
Aymeric Augustin
031896c510
[py3] Explained @python_2_unicode_compatible usage
2012-08-12 15:22:33 +02:00
Tim Graham
cb38fd9632
Fixed #17680 - Clarified when logging is configured.
2012-08-10 17:35:16 -04:00
Tim Graham
eff6ba2f64
Fixed #17016 - Added examples for file uploads in views.
...
Thanks Tim Saylor for the draft patch and Aymeric Augustin and Claude Paroz for feedback.
2012-08-10 16:19:20 -04:00
Claude Paroz
576ec12f8e
[py3] Replaced __nonzero__ by __bool__
...
Of course, __nonzero__ alias has been kept for Python 2 compatibility.
2012-08-08 15:02:31 +02:00
Aymeric Augustin
c5ef65bcf3
[py3] Ported django.utils.encoding.
...
* Renamed smart_unicode to smart_text (but kept the old name under
Python 2 for backwards compatibility).
* Renamed smart_str to smart_bytes.
* Re-introduced smart_str as an alias for smart_text under Python 3
and smart_bytes under Python 2 (which is backwards compatible).
Thus smart_str always returns a str objects.
* Used the new smart_str in a few places where both Python 2 and 3
want a str.
2012-08-07 12:00:22 +02:00
Tim Graham
4f3a6b853a
Fixed #17053 - Added a note about USE_THOUSAND_SEPARATOR setting to localizations docs.
...
Thanks shelldweller for the draft patch.
2012-08-06 16:15:09 -04:00
Tim Graham
84c3c9097d
Merge pull request #153 from webjunkie/patch-1
...
Fixed #18110 -- Improve template cache tag documentation
2012-08-04 12:50:42 -07:00
Tim Graham
46589d0c6d
Merge pull request #244 from mbrochh/master
...
Fixed small typo in class based view docs.
2012-08-04 12:29:42 -07:00
Tim Graham
865ff32b84
Fixed #16980 - Misc updates to the auth docs. Thanks Preston Holmes for the patch.
2012-08-04 15:24:40 -04:00
Simon Meers
10f979fd92
Fixed #18700 -- Added URL reversal for i18n set_language view.
2012-08-04 20:57:12 +10:00
Aymeric Augustin
5aec69ed29
Documented the trick used in 9908201d7f
.
2012-08-03 15:40:29 +02:00
Martin Brochhaus
6f229d2d7a
Update docs/topics/class-based-views/index.txt
...
Fixed a small typo:
"We can use create" should be "We can create"
2012-08-02 19:29:19 +08:00
Simon Meers
d7816c563b
Fixed #18472 - Added warning regarding set_language / i18n_patterns.
2012-08-02 20:45:55 +10:00
Tim Graham
ebbc414d17
Fixed #16168 - Added note regarding type requirements when overridng ModelForm fields.
...
Thanks Pieter Swinkels for the patch.
2012-08-01 07:59:28 -04:00
Tim Graham
964979e8ec
Fixed #18122 - Clarified section title regarding applying permissions to generic views.
2012-07-31 16:13:52 -04:00
Tim Graham
8d3e501502
Fixed #17131 - Added per object permission notes to docs.
...
Thanks dchandek for the suggestion and mateusgondim for the patch.
2012-07-30 18:10:21 -04:00
Aymeric Augustin
ab6cd1c839
[py3] Updated dict-like data structures for Python 3.
...
The keys/items/values methods return iterators in Python 3, and the
iterkeys/items/values methods don't exist in Python 3. The behavior
under Python 2 is unchanged.
2012-07-25 22:58:48 +02:00
Florian Apolloner
7d06f975fe
Fixed #18614 -- Added missing imports in code samples.
2012-07-25 22:32:53 +02:00
Florian Apolloner
4865274bc1
Merge pull request #224 from reclosedev/patch-1
...
Documentation: Fix link to uWSGI deployment
2012-07-25 13:18:11 -07:00
Alex Gaynor
98c7ad444c
Merge pull request #228 from nklas/master
...
Documentation: Fixed a typo in docs/releases/1.4.txt
2012-07-25 13:06:58 -07:00
nklas
c7ac44e64b
Update docs/topics/signals.txt
...
Fixed a typo.
2012-07-25 13:20:26 +07:00
Ramiro Morales
50837434db
Clarified default name of M2M relationship DB table.
2012-07-24 22:44:28 -03:00
Ramiro Morales
f758bdab5e
Fixed #18271 -- Changed stage at which TransactionTestCase flushes DB tables.
...
Previously, the flush was done before the test case execution and now
it is performed after it.
Other changes to the testing infrastructure include:
* TransactionTestCase now doesn't reset autoincrement sequences either
(previous behavior can achieved by using `reset_sequences`.)
With this, no implicit such reset is performed by any of the provided
TestCase classes.
* New ordering of test cases: All unittest tes cases are run first and
doctests are run at the end.
THse changes could be backward-incompatible with test cases that relied
on some kind of state being preserved between tests. Please read the
relevant sections of the release notes and testing documentation for
further details.
Thanks Andreas Pelme for the initial patch. Karen Tracey and Anssi
Kääriäinen for the feedback and Anssi for reviewing.
This also fixes #12408 .
2012-07-24 17:24:16 -03:00
Aymeric Augustin
ebc89a800a
Fixed a broken link in the Python 3 docs.
...
Thanks ptone for the report.
2012-07-22 19:48:10 +02:00
Roman Haritonov
cc65f4ec8d
Documentation: Fix link to uWSGI deployment
2012-07-22 18:54:47 +04:00
Aymeric Augustin
00ace01411
[py3] Documented coding guidelines for Python 3.
2012-07-22 10:29:07 +02:00
Aymeric Augustin
8b01909841
[py3] Bundled six for Python 3 compatibility.
...
Refs #18363 .
2012-07-22 09:29:44 +02:00
Mike Grouchy
a2e927b7ed
BaseCache now has a no-op close method as per ticket #18582
...
Also removed the hasattr check when firing request_finished signal for
caches with a 'close' method. Should be safe to call `cache.close`
everywhere now
2012-07-18 14:16:55 -04:00
Anssi Kääriäinen
aeda55e6bf
Fixed #3881 -- skip saving session when response status is 500
...
Saving session data is somewhat likely to lead into error when the
status code is 500. It is guaranteed to lead into error if the reason
for the 500 code is query error on PostgreSQL.
2012-07-16 20:57:55 +03:00
Aymeric Augustin
fb46f243b4
Fixed #18625 -- Removed old-style use of url tag
...
from the documentation.
2012-07-15 11:19:50 +02:00
Aymeric Augustin
c13a98968e
Fixed a misplaced Sphinx reference.
2012-07-14 12:32:39 +02:00
Preston Holmes
18b9dc4154
Fixed #18601 -- Specified that Python minimum version is 2.6.5
...
This is due to a bug in previous Python 2.6 versions related to
unicode keyword arguments.
2012-07-13 17:33:13 +02:00
Adrian Holovaty
c9a1f9d1fc
Merge pull request #197 from StefanKjartansson/master
...
Fixed typo in docs
2012-07-11 15:05:48 -07:00
mitnk
fe443b11de
fixed a typo in timezones docs.
2012-07-11 10:57:26 +08:00
Stefan Kjartansson
5664338e22
typo in "django/docs/topics/python3.txt"
2012-07-10 15:27:50 +00:00
Tim Graham
590de18add
Fixed #18577 - Clarified middleware initialization.
...
Thanks Lukasz Balcerzak for the patch.
2012-07-08 19:26:53 -04:00
Aymeric Augustin
d94cfdcfae
Fixed #18589 -- Typo in generic CBV docs.
...
Thanks cpthomas for the report.
2012-07-07 17:42:04 +02:00
Tim Graham
5d81ad1af1
Fixed #17168 - Noted TransactionMiddleware only works with "default" database alias.
...
Thanks codeinthehole for the draft patch.
2012-06-30 10:25:51 -04:00
Claude Paroz
8a5d1a6b93
Updated obsolete links in the documentation
2012-06-28 10:49:07 +02:00
Tim Graham
1cf8287e3a
Fixed #18369 - Fixed argument name in render() function; thanks qsolo825@ for the report.
2012-06-27 17:40:29 -04:00
Claude Paroz
ada961b0d2
Fixed #18527 -- Removed superfluous backslash in CBV docs
...
Thanks ramilzay at gmail.com for the report.
2012-06-27 18:13:14 +02:00
Gabriel Grant
d69f1d71c4
Fixed typo in JSONResponseMixin example.
2012-06-25 08:48:32 +02:00
Claude Paroz
19a810b18c
Fixed #14917 -- Hinted that view should redirect after form post success
2012-06-23 18:47:52 +02:00
Dmitry Medvinsky
d4da08375b
Fixed #18454 -- Added ability to pass a list of signals to `receiver`.
...
Added ability to use receiver decorator in the following way:
@receiver([post_save, post_delete], sender=MyModel)
def signals_receiver(sender, **kwargs):
...
2012-06-23 16:31:16 +02:00
Bojan Mihelac
946d3d9f84
Fixed url translation docs.
...
``include`` calls shouldn't have a $ sign at the end of the url pattern.
2012-06-23 16:14:56 +02:00
Gabe Jackson
ffa6d95f65
Fixed #18154 -- Documentation on closing File objects and best practices
2012-06-19 09:56:10 +12:00
Julian Bez
3c0877938f
Fixed #18110 -- Improve template cache tag documentation
2012-06-14 17:42:55 +03:00
Jannis Leidel
c4c7fbcc0d
Fixed #18451 -- Vastly improved class based view documentation.
...
Many thanks to Daniel Greenfeld, James Aylett, Marc Tamlyn, Simon Williams, Danilo Bargen and Luke Plant for their work on this.
2012-06-11 10:40:23 +02:00
Claude Paroz
b0d8085c67
Added note about including fixtures hashing algorithm
...
Refs #18157 .
2012-06-09 21:14:13 +02:00
Claude Paroz
17d6cd9029
Fixed #18157 -- Documented that setting PASSWORD_HASHERS can speed up tests
2012-06-09 20:41:46 +02:00
Claude Paroz
514e827022
Fixed pagination example wrt new next_page_number behavior
2012-06-09 18:07:30 +02:00
Claude Paroz
fc40a6504b
Fixed #17159 -- Validated returned number of next|previous_page_number
...
Thanks mehta.apurva at gmail.com for the report and the initial patch
and neaf for the complete patch.
2012-06-09 17:55:24 +02:00
Audrey Roy
7ab6e32843
Revised the text in the 'Processing the data from a form' section.
2012-06-08 12:13:52 +02:00
Audrey Roy
3c05b500a5
Revised the text in the 'Using a form in a view' section.
2012-06-08 12:03:52 +02:00
Aymeric Augustin
06ea10e1f1
Fixed #18125 -- Explained caveat with filters
...
Thanks ebrelsford AT gmail.com and oinopion.
2012-06-08 10:25:42 +02:00
Aymeric Augustin
33999d9871
Fixed #18445 -- Added a links in the docs.
...
Thanks Audrey Roy for the patch.
2012-06-07 22:11:24 +02:00
Claude Paroz
5e6ded2e58
Fixed #18363 -- Added Python 3 compatibility layer.
...
Thanks Vinay Sajip for the support of his django3 branch
and Alex Gaynor, kezabelle, YorikSar for the review.
2012-06-07 18:36:53 +02:00
Claude Paroz
4a103086d5
Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.
...
Thanks Vinay Sajip for the support of his django3 branch and
Jannis Leidel for the review.
2012-06-07 18:08:47 +02:00
Aymeric Augustin
c28e700c7e
Removed references to changes made in 1.2.
...
Thanks Florian Apolloner for the patch.
2012-06-07 15:02:35 +02:00
Aymeric Augustin
10a9c260fc
Merge pull request #117 from juanriaza/master
...
Fixed #18380 -- Improved installation instructions for MySQLdb.
2012-06-07 04:40:38 -07:00
Juan Riaza
bac6a68064
Fixed #18380 -- Improve installation instructions for MySQLdb
2012-06-07 13:35:04 +02:00
Aymeric Augustin
875c762517
Fixed #16916 -- Documented default headers for the test client.
...
Thanks sailorfred AT yahoo.com for the report and raulcd
for the initial version of the patch.
2012-06-07 12:51:48 +02:00
Aymeric Augustin
17f3e9258e
Fixed #18397 -- Avoided referencing lawrence.com.
...
This commit includes multiple small related changes, see the ticket
for a full discussion.
2012-06-07 11:50:20 +02:00
Jacob Kaplan-Moss
7edf231d46
Replaced documentation snippets using "gender" with less sensitive examples.
2012-06-06 13:52:53 +02:00
Luke Plant
0199bdc0b4
Rewrote security.txt SSL docs, noting SECURE_PROXY_SSL_HEADER.
2012-06-04 21:41:05 +01:00
Adrian Holovaty
6799ffad9a
Merge pull request #99 from danielroseman/master
...
Docs: "Form in a view" example doesn't use RequestContext
2012-06-04 13:13:14 -07:00
Daniel Roseman
5c59e43aef
Use render shortcut in form example.
2012-05-31 15:33:45 +01:00
Aymeric Augustin
e73838b6dd
Fixed #17371 -- Made the test client more flexible
...
The OPTIONS, PUT and DELETE methods no longer apply arbitrary
data encoding (in the query string or in the request body).
2012-05-25 19:03:15 +02:00
Claude Paroz
6219591f2e
Fixed #18244 -- Documented that formset.has_changed is a 1.4 addition.
2012-05-22 13:56:03 +02:00
Claude Paroz
cafa5bf4f4
Replaced print statement by print function in new install instructions.
2012-05-22 13:22:45 +02:00
Carl Meyer
6ed7d40727
Fixed #18115 - added warning about overlaid install.
...
Setup.py now warns if it detects that Django is being installed over top
of a previous installation that was never removed. This should only
happen when installing with ``python setup.py install``, as pip
automatically uninstalls before installing a new version and
easy_install installs as an egg directory.
Also generally updated the installation doc.
2012-05-21 17:28:58 -06:00
Aymeric Augustin
4b58e94f27
Followed a best practice in the time zones docs.
...
Prevented localize from swallowing non existent or ambiguous
datetimes.
2012-05-19 23:33:38 +02:00
Stratos Moros
5d80d30a23
remove mention of djangoproject.com from cbv topic
...
The class based views topic mentions that the djangoproject.com weblog
is built using the date-based generic views, but looking at the code,
it actually uses the deprecated pre-1.3 function based generic views.
2012-05-18 13:25:15 +03:00
Adrian Holovaty
aa757ac22d
Merge pull request #43 from techtonik/patch-1
...
Fixed #18267 -- document `settings.configured` property.
2012-05-16 08:12:48 -07:00
anatoly techtonik
59d2b8aa16
Fix issue #18267 - document `settings.configured` property.
2012-05-16 16:13:39 +03:00
Claude Paroz
0611e1fed2
Fixed #18301 -- Fixed url name in password reset example.
...
Thanks nicknnn for the report.
2012-05-11 20:15:30 +02:00
Aymeric Augustin
d171b3cc0b
Fixed #16335 -- Clarified an unintuitive behavior.
...
The DTL will perform dict lookup before method lookup, which yields
an unexpected result for defaultdicts.
2012-05-10 22:34:03 +02:00
Aymeric Augustin
ecdd0914b1
Updated time zone FAQ with timezone.localize.
2012-05-06 09:50:30 +02:00
Alex Gaynor
1583d40224
Fixed the syntax used for the Python repl examples in docs and docstrings.
2012-05-05 09:54:30 -05:00
Claude Paroz
865cd35c9b
Made more extensive usage of context managers with open.
2012-05-05 14:06:36 +02:00
Claude Paroz
ec5423df05
Fixed #18270 -- Corrected variable name in password reset example.
...
Thanks schnippi for the report.
2012-05-04 08:20:50 +02:00
Ramiro Morales
e9a56606e7
Fixed broken URLs introduced in 1adc87cd32
.
2012-05-03 12:42:56 -03:00
Ramiro Morales
1adc87cd32
Updated some URLs in the documentation to point to the new repository.
2012-05-03 11:53:17 -03:00
Alex Ogier
227cec686e
Fixed #18214 -- Clarified the docs about serializable objects.
2012-05-03 08:57:22 +02:00
Claude Paroz
596cb9c7e2
Replaced print statement by print function (forward compatibility syntax).
2012-04-30 20:45:03 +02:00
Aymeric Augustin
cec6bd5a59
Fixed #18023 -- Removed bundled simplejson.
...
And started the deprecation path for django.utils.simplejson.
Thanks Alex Ogier, Clueless, and other contributors for their
work on the patch.
2012-04-29 19:58:00 +02:00
Adrian Holovaty
8df8e516ab
Updated docs/topics/install.txt to note github URL instead of code.djangoproject.com
2012-04-27 22:26:16 -05:00
Claude Paroz
be12c9e908
Fixed #18038 -- Removed the 'supports_inactive_user' backwards-compatibility flag. Thanks Aymeric Augustin for the initial patch and Ramiro Morales for the review.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17938 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-26 17:15:40 +00:00
Claude Paroz
1858e47672
Fixed #18033 -- Removed function-based generic views, as per official deprecation timeline. Rest in peace! Thanks Anssi Kääriäinen for the review.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17937 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-25 19:17:47 +00:00
Claude Paroz
eb351ac9cb
Fixed #18037 -- Changed behaviour of url and ssi template tags to the new syntax, as per official deprecation timeline. Thanks Ramiro Morales and Jannis Leidel for the review.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17934 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-24 19:55:52 +00:00
Alex Gaynor
bc8b9bd438
Fixed #18159 -- added an import statement to the docs. Thanks to Jeff Hui for the patch.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17927 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-22 15:58:53 +00:00
Ramiro Morales
83fc965171
Added documentation notes about lack of database savepoints support when using MySQL+MyISAM.
...
Refs #15507 , #18116 and r17341, r17921.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17923 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-21 22:52:03 +00:00
Luke Plant
718f149bb2
Added more explicit warnings about unconfigured reStructured Text usage in docs.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17915 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-19 15:00:55 +00:00
Claude Paroz
38d7a3a0fe
Fixed #18316 -- Fixed pre-1.3 PermWrapper location in docs. Thanks Adrien Lemaire for the patch.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17913 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-16 11:38:43 +00:00
Claude Paroz
157f823819
Fixed #18024 -- Reworded sentence in models documentation. Thanks Preston Holmes for the patch.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17912 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-15 21:25:23 +00:00
Aymeric Augustin
5116c51b40
Clarified that Django randomizes session keys. Refs #11555 , #13478 , #18128 .
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17911 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-15 16:34:13 +00:00
Aymeric Augustin
a9187e5447
Fixed a typo in an example in the timezone docs.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17908 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-14 06:40:53 +00:00
Claude Paroz
57a12ca0ac
Fixed #18118 -- Improved documentation for contrib.auth.hashers utility functions. Thanks Mathieu Agopian for the report and Ramiro Morales for the review.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17905 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-13 11:38:52 +00:00
Aymeric Augustin
93240b7d90
Fixed #17229 -- Allow 'True', 'False' and 'None' to resolve to the corresponding Python objects in templates.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17894 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-10 20:49:45 +00:00
Claude Paroz
916d705538
Fixed #18095 -- Added missing 'cc' mention in EmailMessage recipients() description. Thanks Stéphane Raimbault for the report and the patch.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17891 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-10 20:00:18 +00:00
Claude Paroz
8663bc1103
Fixed #16074 -- Added ContextMixin to class-based generic views to handle get_context_data. Thanks emyller, Luke Plant, Preston Holmes for working on the ticket and patch.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17875 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-06 21:24:33 +00:00
Claude Paroz
723445f40e
Fixed #16233 -- Added link to multiple databases docs from custom sql alias section. Thanks charlax for the report.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17872 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-06 09:17:37 +00:00
Ramiro Morales
b41ebcf1b9
Fixed #18040 -- Removed so-called project-level locale trees from the list of paths the translation loading process takes in account.
...
Deprecated in Django 1.3. Removed completely for Django 1.5.
Thanks Claude for the review.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17861 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-31 22:24:24 +00:00
Claude Paroz
89b66efafc
Fixed #17983 -- Re-fixed the ln syntax by adding a trailing slash to the destination directory.
...
The -t argument is not a POSIX standard. Thanks Aymeric Augustin for pointing the problem.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17859 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-31 18:55:23 +00:00
Claude Paroz
7b89e0fc57
Fixed #17983 -- Use a non-ambiguous syntax of the ln command in install docs.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17855 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-31 18:24:43 +00:00
Aymeric Augustin
9ed6e08ff9
Removed deprecated URLField.verify_exists.
...
The deprecation schedule was slightly accelerated because of possible security ramifications.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17847 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-31 13:55:03 +00:00
Aymeric Augustin
d66035c4a6
Removed documentation for SMTPConnection, which was removed at r15978.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17837 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-31 12:08:39 +00:00
Claude Paroz
a1ffb02107
Fixed #18029 -- Removed mod_python as of deprecation process. Thanks Aymeric Augustin for the review.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17835 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-31 10:34:11 +00:00
Claude Paroz
23d3459761
Fixed #17965 -- Definitely dropped support for Python 2.5. Thanks jonash for the initial patch and Aymeric Augustin for the review.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17834 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-31 08:24:29 +00:00
Claude Paroz
27322df995
Fixed #17999 -- Restored the links to examples from models documentation. Refs #17605 .
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17832 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-30 17:59:12 +00:00
Aymeric Augustin
eb163f37cb
Use the class decorator syntax available in Python >= 2.6. Refs #17965 .
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17829 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-30 09:08:29 +00:00
Ramiro Morales
782c1a770e
Fixed #17999 -- Added a 'See also' paragraph to OneToOneField doc section.
...
Thanks creecocde for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17822 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-29 15:25:27 +00:00
Claude Paroz
f95baa1d8a
Added missing indentation in models topic documentation.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17812 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-27 09:07:03 +00:00
Claude Paroz
ecf75e5957
Fixed #17841 -- Clarified caching note about authentication backends. Thanks auzigog for the proposal and lukegb for the patch.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17752 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-16 19:30:00 +00:00
Claude Paroz
f946b12c06
Fixed #17900 -- StreamHandler output defaults to stderr. Thanks c4m3lo for the report.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17741 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-15 07:56:01 +00:00
James Bennett
dad1f5c21e
Fixed #17605 : Restored deleted query documentation that used to live in doctests. Thanks zsiciarz for work on the patch.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17737 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-14 22:16:46 +00:00
Claude Paroz
3dc946e49e
Fixed #17236 -- Clarified that anonymous session data are retained after login. Thanks krzysiumed for the patch.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17704 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-13 19:23:52 +00:00
Claude Paroz
78638a9a51
Replaced http by https in djangoproject.com links
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17703 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-13 17:53:31 +00:00
Adrian Holovaty
dd246a62c7
Edited some docs and docstrings until [17685]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17686 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-12 20:05:48 +00:00
Ramiro Morales
aba9ebcaee
Fixed a couple of typos in testing document.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17680 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-11 19:49:19 +00:00
Aymeric Augustin
a78e61b5e9
Fixed a ReST error. Thanks md4d for the report.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17654 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-04 20:32:12 +00:00
Aymeric Augustin
503c85affc
Fixed a typo in the time zone docs. Thanks Ramiro.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17646 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-03 22:41:21 +00:00
Aymeric Augustin
af3791fa7f
Fixed #17738 -- Extended the time zone documentation with a FAQ. Thanks Anssi for the questions and Jannis for the review.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17645 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-03 22:02:23 +00:00
Ramiro Morales
149e541034
Added a blurb about new SimpleTestCase class to release notes.
...
Also, tweaked the cross-referencing of `django.test` symbols.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17644 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-03 21:50:49 +00:00
Aymeric Augustin
3576c99f74
Fixed #17808 -- Explained why fixtures can trigger RuntimeWarnings after enabling time zone support, and how to fix them.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17637 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-03 10:13:35 +00:00
Aymeric Augustin
c0e73a4909
Fixed #9995 -- Updated the installation instructions to recommend pip. Also fixed ReST errors. Refs #9112 .
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17636 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-03 09:11:54 +00:00
Adrian Holovaty
2ade1e916f
Edited stuff from [17543] to [17629]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17630 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-02 17:16:52 +00:00
Jannis Leidel
fcaf8eae14
Fixed #17046 -- Added a check if the username passed to User.objects.create_user is empty or not. Thanks, kwadrat.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17628 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-02 16:56:20 +00:00
Jannis Leidel
d93a2ef887
Fixed #17568 -- Mentioned ``reverse_lazy`` in the ``LOGIN_REDIRECT_URL`` settings docs. Thanks, zsiciarz.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17626 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-02 16:56:04 +00:00
Carl Meyer
7b624c6c32
Fixed #17794 - Added a bunch of cross-reference links to the DB queries topic documentation. Thanks guettli for the initial patch.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17624 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-02 16:45:06 +00:00
Paul McMillan
a255d39338
Fixed 17764. Improved auth docs.
...
Thanks mbt for the report and patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17620 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-02 05:03:52 +00:00
Paul McMillan
84dd83f018
Fixes #17578 . Improve setup instructions for Windows users.
...
Thanks Pariksheet Nanda for the report and zsiciarz for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17619 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-02 04:27:46 +00:00
Aymeric Augustin
2ddfcfbec6
Clarified the fact that the signal_changed signal isn't used by Django itself (yet). Refs #17787 .
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17597 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-27 22:52:07 +00:00
Ramiro Morales
7061da514a
Added a diagram of the hierarchy of our TestCase subclasses to the testing docs.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17595 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-27 19:04:33 +00:00
Timo Graham
9e62428c28
Fixed #17390 - Added a note to topics/auth.txt regarding how to decorate class-based generic views; thanks zsiciarz for the patch.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17564 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-20 18:57:51 +00:00
Aymeric Augustin
cfd0cb0064
Fixed #17319 -- Made the example for set_language less error-prone. Thanks Anna Dolma Alonso for the report.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17560 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-19 09:19:38 +00:00
Adrian Holovaty
c1bdfd6f6f
Changed various non-breaking space characters from [17478] to use the code representation rather than the actual character, which is too hard to overlook because it just looks like a space
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17542 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-17 20:23:42 +00:00
Adrian Holovaty
7981efe04f
Documentation (and some small source code) edits from [17432] - [17537]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17540 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-17 20:04:11 +00:00
Aymeric Augustin
9d7b5558ee
Fixed a few typos and updated an example in the URLs docs.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17537 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-16 21:59:22 +00:00
Julien Phalip
41256d2341
Fixed #17652 -- Removed all mentions to Windmill from the docs as that project doesn't integrate well with Django at this time.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17524 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-15 17:33:51 +00:00
Jannis Leidel
bd13cfa917
Added a note to the release notes about the new format strings added in r17473.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17520 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-13 20:57:44 +00:00
Timo Graham
2df1847c9b
Fixed #16653 - Added example of kwargs support for resolve(); thanks krzysiumed for the patch.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17517 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-12 17:10:31 +00:00
Ramiro Morales
fc14996c8d
Made a couple of tweaks to lazy translation docs.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17490 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-10 01:45:03 +00:00
Jannis Leidel
75c60e8053
Fixed #17217 -- Use non breaking spaces for format localization in which spaces are used. Thanks, Claude Paroz.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17478 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-09 18:58:17 +00:00
Jannis Leidel
e445b66fd8
added German (Switzerland) localflavor formats
...
added documentation on the limitations of the German (Switzerland)
localflavor formats
Based on a patch by sspross (#16188 )
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17472 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-09 18:57:22 +00:00
Timo Graham
0ccbb5356a
Fixed #17571 - Fixed documentation of skipUnlessDBFeature; thanks EnTeQuAk for the report.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17459 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-05 15:53:09 +00:00
Timo Graham
9f95d79cee
Fixed #17510 - Typo in docs/topics/class-based-views.txt; thanks andrew and noria.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17457 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-05 15:41:33 +00:00
Jannis Leidel
954e3b4ad3
Fixed #13914 -- Added natural keys to User and Group models in auth contrib app. Thanks, jbochi and closedbracket.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17429 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-04 12:48:01 +00:00
Adrian Holovaty
6ecadcbdd2
Made a bunch more edits up until [17418]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17428 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-03 20:45:45 +00:00
Adrian Holovaty
00227b6529
Edited serialization.txt changes from [17355]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17427 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-03 20:16:06 +00:00
Adrian Holovaty
6bbc85cd6a
Edited db/transactions.txt changes from [17341]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17423 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-03 17:54:08 +00:00
Carl Meyer
844a24bbb9
Fixed #16921 -- Added assertHTMLEqual and assertHTMLNotEqual assertions, and converted Django tests to use them where appropriate. Thanks Greg Müllegger.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17414 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-01-31 20:36:11 +00:00
Carl Meyer
a678e9ea65
Fixed #17604 - Added context-manager capability to assertTemplateUsed and assertTemplateNotUsed. Thanks Greg Müllegger.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17412 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-01-31 19:23:09 +00:00
Ramiro Morales
c35399ba0d
Updated link to Django Debug Toolbar homepage.
...
Thanks to rowynm AT gmail DOT com for the report and to Claude Paroz for
the patch.
Fixes #17543 .
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17376 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-01-15 03:27:48 +00:00
Ramiro Morales
e308cfc0e1
Added support for specifying initial values to model formsets and inline formsets.
...
This make them consistent with the similar capability of regular
formsets. Thanks to simon29 form the report and to Claude Paroz for the
patch.
Fixes #14574 .
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17373 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-01-15 01:36:14 +00:00
Adrian Holovaty
64229eb388
Started a 'Cheat sheet' section in aggregation docs because I desperately need this
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17371 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-01-13 21:57:30 +00:00
Aymeric Augustin
d101ed2cb8
Fixed #16364 -- Clarified why automatically created data shouldn't be saved in fixtures. Thanks Gabriel for the review.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17355 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-01-07 21:52:07 +00:00
Ramiro Morales
8312b85c97
Added support for savepoints to the MySQL DB backend.
...
MySQL provides the savepoint functionality starting with version 5.0.3
when using the MyISAM storage engine.
Thanks lamby for the report and patch.
Fixes #15507 .
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17341 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-01-05 00:45:31 +00:00
Adrian Holovaty
ffb0519d44
Edited testing.txt changes from [17289]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17307 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-30 20:34:07 +00:00
Adrian Holovaty
32ee74f89e
Edited testing.txt changes from [17283]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17306 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-30 20:29:27 +00:00
Adrian Holovaty
103890561b
Moved 'User-requested password resets' docs from [17266] from auth docs to admin docs
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17305 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-30 20:23:26 +00:00
Julien Phalip
0bf2d33770
Added the ability to specify multiple ports available for the `LiveServerTestCase` WSGI server. This allows multiple processes to run the tests simultaneously and is particularly useful in a continuous integration context. Many thanks to Aymeric Augustin for the suggestions and feedback.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17289 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-29 20:22:13 +00:00
Julien Phalip
ec07a30e82
Indicated the exact version that is required to use the "WebDriverWait" example in the testing doc.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17285 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-29 07:28:21 +00:00
Julien Phalip
a343a84ce6
Added the `wait_until()` and `wait_loaded_tag()` methods to `AdminSeleniumWebDriverTestCase` to prevent some concurrency issues with in-memory SQLite database access in the admin Selenium tests. Thanks to Florian Apolloner, Anssi Kääriäinen and Aymeric Augustin for their help debugging this problem.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17283 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-28 22:20:30 +00:00
Luke Plant
1c16907199
Added a password reset link to default admin login page if a password reset URL is available.
...
You no longer have to override the admin login page just to get that link to
appear!
Also provided much better docs for how to plug in the provided password
reset mechanism with minimum effort.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17266 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-24 00:14:45 +00:00
Gabriel Hurley
14ba0df3d0
Cleanup of typos, links, etc. in timezone docs.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17265 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-23 19:18:44 +00:00
Jannis Leidel
2a9ae71780
Fixed various links in the docs.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17262 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-23 12:19:05 +00:00
Paul McMillan
dce820ff70
Renovated password hashing. Many thanks to Justine Tunney for help with the initial patch.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17253 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-23 03:46:06 +00:00
Julien Phalip
2f02a05ffb
Fixed #2879 -- Added support for the integration with Selenium and other in-browser testing frameworks. Also added the first Selenium tests for `contrib.admin`. Many thanks to everyone for their contributions and feedback: Mikeal Rogers, Dirk Datzert, mir, Simon G., Almad, Russell Keith-Magee, Denis Golomazov, devin, robertrv, andrewbadr, Idan Gazit, voidspace, Tom Christie, hjwp2, Adam Nelson, Jannis Leidel, Anssi Kääriäinen, Preston Holmes, Bruno Renié and Jacob Kaplan-Moss.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17241 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-22 08:33:58 +00:00
Ramiro Morales
5a48cb5f61
Added note about assertFieldOutput being new in 1.4.
...
Thanks dpifke for report and patch.
Fixes #17433
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17230 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-19 11:53:16 +00:00
Adrian Holovaty
d3055b3382
Quick edit of docs/topics/security.txt to catch some basic formatting problems and reword an awkward section
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17222 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-17 02:48:27 +00:00
Adrian Holovaty
1bf58154f7
Fixed #17330 -- Fixed error in logging.txt. Thanks, jblaine
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17215 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-17 02:15:01 +00:00
Adrian Holovaty
2494dd25f5
Fixed #17364 -- Fixed typos in topics/testing.txt. Thanks, movielady
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17214 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-17 02:03:56 +00:00
Ramiro Morales
e7b5e22484
Expanded section about lazy translation in i18n docs.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17203 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-15 11:04:57 +00:00
Adrian Holovaty
594a45ed29
Fixed some comma splices in the 'Insert in bulk' section of db/optimization.txt
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17188 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-09 23:14:04 +00:00
Timo Graham
98f5127fb8
Fixed #17220 - Documented git clone command for git < 1.6.6; thanks krzysiumed for the patch.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17139 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-21 23:40:11 +00:00
Timo Graham
f2d02647fa
Fixed #16851 - Added how-to access form field value in template; thanks yasar11732 for the patch.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17138 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-21 23:33:39 +00:00
Paul McMillan
4d975b4f88
Fixed #16847 . Session Cookies now default to httponly = True.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17135 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-21 22:03:03 +00:00
Aymeric Augustin
9c30d48b45
Fixed #17263 -- Added a warning when a naive datetime reaches the database layer while time zone support is enabled.
...
After this commit, timezones.AdminTests will raise warnings because the sessions contrib app hasn't been upgraded to support time zones yet.
This will be fixed in an upcoming commit.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17117 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-19 23:27:20 +00:00
Timo Graham
9b8e211dd3
Fixed #17028 - Changed diveintopython.org -> diveintopython.net
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17115 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-19 22:57:20 +00:00
Karen Tracey
c8c71057aa
Fix #15646 : Document that a FileField's full path can't be relied upon until its model has been saved to the database. Thanks poirier.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17113 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-19 15:08:07 +00:00
Jannis Leidel
6f66b55108
Fixed #17255 -- Removed "as" prefix from new timezone template filter names for the sake of clarity. Cheers to Aymeric Augustin for bearing with me.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17107 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-18 15:00:08 +00:00
Aymeric Augustin
9b1cb755a2
Added support for time zones. Thanks Luke Plant for the review. Fixed #2626 .
...
For more information on this project, see this thread:
http://groups.google.com/group/django-developers/browse_thread/thread/cf0423bbb85b1bbf
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17106 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-18 13:01:06 +00:00
Aymeric Augustin
01f70349c9
Fixed #17248 -- Added a missing versionadded directive for TestCase.assertRaisesMessage.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17105 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-18 07:09:18 +00:00
Jannis Leidel
c20d33201c
Fixed #17223 -- Correctly reference the signed cookies session backend. Thanks, Bryan Veloso.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17101 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-17 21:16:42 +00:00
Aymeric Augustin
1adf8d4386
Fixed #17240 -- Replaced links to the online version of the docs by internal references.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17100 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-16 21:04:28 +00:00
Karen Tracey
ba0734af9c
Fix #17119 : Update cache doc to match current implementation, which does (since r15705) cache pages with GET parameters. Thanks Vanni, poirier, and calvinspealman.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17090 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-12 20:30:03 +00:00