Commit Graph

6819 Commits

Author SHA1 Message Date
Collin Anderson 2c1384fbac Fixed a few PEP8 errors in settings doc. 2014-07-06 18:31:10 -04:00
Andrew Godwin 32fefc6f70 Document --fake and --list on migrate command 2014-07-06 00:30:18 -07:00
Daniel Hahler 67f9f385aa Fixed various minor doc typos / references. 2014-07-05 20:26:26 -04:00
Andrew Godwin f751109cb2 Merge pull request #2881 from charettes/ticket-22943-compiled-regex-deconstruction
Fixed #22943 -- Correctly serialize compiled regexes.
2014-07-05 16:37:10 -07:00
Tim Graham 7fd55c3481 Fixed #20631 -- Increased the default EmailField max_length to 254.
Thanks pmartin for the report.
2014-07-04 14:15:00 -04:00
Simon Charette 35c2c37041 Fixed #22943 -- Correctly serialize compiled regexes.
Thanks to antialiasis at gmail dot com for the patch.
2014-07-04 13:34:20 -04:00
Loic Bistuer 1966054feb Fixed #22915 -- Document backward incompatible changes in the ValidationError constructor.
This patch also fixes update_error_dict to better handle the use case described
in this ticket, previously the type of the provided container could be lost in
some conditions.

Thanks Russell Keith-Magee for the report and Tim Graham for review.
2014-07-04 17:05:31 +07:00
Tim Graham 814bcc3395 Fixed #22924 -- Added a note about MEDIA_URL in templates.
Thanks raphael.herouart at gmail.com
2014-07-03 09:21:20 -04:00
Anubhav Joshi 9bc2d766a0 Fixed #21755 -- Added ForeignKey support to REQUIRED_FIELDS.
This allows specifying ForeignKeys in REQUIRED_FIELDS when using a
custom User model.

Thanks cjerdonek and bmispelon for suggestion and timgraham for review.
2014-07-03 07:42:52 -04:00
Daniel Lindsley 23d68c0f0d Removed myself from committers. 2014-07-02 23:33:03 -05:00
LarryBrid a93ee5112d Fixed #22941 - Added support for domain-only links with chars after the TLD to urlize.
It now works with something like google.com/foo/bar
2014-07-02 20:36:53 -04:00
Tim Graham 42f5c8f397 Fixed typo in docs/ref/models/instances.txt 2014-07-02 13:21:34 -04:00
Tim Graham 1a3bec4a26 Fixed #18108 -- Added instructions for translating documentation.
Thanks Claude Paroz.
2014-07-02 13:16:31 -04:00
Anubhav Joshi 10e83d48a3 Fixed #22935 -- Changed ForeignKey.default_error_messages['invalid'] to refer to correct field.
Thanks Tim Graham for suggestion and review.
2014-07-02 13:01:36 -04:00
Tim Graham c37000ab04 Clarified that LocMemCache is per-process; refs #7639.
Thanks projectgus for the suggestion.
2014-07-02 10:12:43 -04:00
Éric Araujo 5842d8eba4 Removed non-existent reference to args/kwargs in manager docs. 2014-07-02 07:54:02 -04:00
Andrew Godwin e9249bc20b Fixed #22932: Documented circular dependency issues with swappable user 2014-07-01 20:54:46 -07:00
Tim Graham db9a1a0c47 Fixed #13755 -- Added a tip for caching responses that vary on AJAX.
Thanks mila for the suggestion.
2014-07-01 17:32:14 -04:00
Tim Graham 20ec9daf7c Fixed #22933 -- Deprecated django.template.resolve_variable(). 2014-07-01 17:29:41 -04:00
Claude Paroz 232f2028d5 Included irc link in paragraph to allow for l10n
Translators may want to change the irc link pointing to a
language-specific channel.
2014-07-01 21:54:32 +02:00
Anssi Kääriäinen 0b6f05ede6 Fixed #19501 -- added Model.from_db() method
The Model.from_db() is intended to be used in cases where customization
of model loading is needed. Reasons can be performance, or adding custom
behavior to the model (for example "dirty field tracking" to issue
automatic update_fields when saving models).

A big thank you to Tim Graham for the review!
2014-07-01 16:31:01 +03:00
Curtis 71461b14ab Fixed #22691 -- Added aliasing to cached_property. 2014-07-01 06:32:53 -04:00
Anubhav Joshi 34ba86706f Fixed #14334 -- Query relation lookups now check object types.
Thanks rpbarlow for the suggestion; and loic, akaariai, and jorgecarleitao
for reviews.
2014-07-01 06:12:58 -04:00
Tim Graham 81edf2d006 Fixed non-multiple of 4 indentation in docs/ref/request-response.txt. 2014-06-30 19:47:19 -04:00
Tim Graham bbf0a9545b Fixed #22482 -- Recommended using data migrations in contrib.sites docs.
Thanks scibi for the report.
2014-06-30 18:48:49 -04:00
Tim Graham f3a933d7c1 Made docs CSS for versionchanged/added more similar to docs.djangoproject.com. 2014-06-30 18:38:30 -04:00
Tim Graham e3c7af18a3 Fixed #19489 -- Documented host parameter of assertRedirects().
Thanks mrknacky at gmail.com for the report and gajimenezmaggiora
for the draft patch.
2014-06-30 17:52:04 -04:00
Tim Graham 874053edf9 Fixed #21942 -- Moved Form.clean() to form API docs.
Thanks cjerdonek for the suggestion.
2014-06-30 16:30:57 -04:00
Claude Paroz 0b5bafe993 Removed reference to old middleware 2014-06-30 20:36:18 +02:00
Tim Graham cf252dbea6 Fixed #8162 -- Increased Permission.name max_length to 255 characters. 2014-06-30 14:20:51 -04:00
Tim Graham 5359188b08 Fixed docs/ref/contrib/auth.txt so that sphinx links work properly. 2014-06-30 14:20:51 -04:00
Tim Graham 1e8411259f Fixed #22912 -- Warned about a common mistake in tutorial 5. 2014-06-27 09:51:21 -04:00
Matt Deacalion Stevens ec85df2fa5 Fixed and enhanced new HTML form docs. 2014-06-26 13:57:19 -04:00
Éric Araujo e9c730f6be Fixed copy/paste typos in StreamingHttpResponse doc. 2014-06-26 07:27:13 -04:00
Gert Van Gool a8c5630c98 Fixed typo in parameter name doc for BaseCommand.check(). 2014-06-26 07:23:32 -04:00
Ramiro Morales 77c0a904cb Fixed typo in revamped forms intro doc. 2014-06-25 12:15:20 -03:00
Duncan Parkes fd4ccd045c Fixed #22799 -- Made GET and POST on HttpRequest QueryDicts, and FILES a MultiValueDict.
Previously, GET, POST, and FILES on an HttpRequest were created in
the __init__ method as dictionaries. This was not something you would
usually notice causing trouble in production as you'd only see a
WSGIRequest, but in testing using the test client, calling .getlist
on GET, POST, or FILES for a request with no get/post data resulted in
an AttributeError.

Changed GET and POST on an HttpRequest object to be mutable
QueryDicts (mutable because the Django tests, and probably many
third party tests, were expecting it).
2014-06-24 22:03:22 -04:00
Duncan Parkes d68987ae25 Fixed #22897 -- Made QueryDict query_string argument optional.
Now QueryDict() is equivalent to QueryDict('') or QueryDict(None).
2014-06-24 22:02:03 -04:00
Duncan Parkes 7f4e2ef1e9 Improved documentation for QueryDict. 2014-06-24 21:40:21 -04:00
Peter Kowalczyk 48241ec9c4 Fixed typo in middleware docs.
Function definition should have an ending colon.
2014-06-24 16:06:06 -04:00
Daniele Procida cd20b5d186 Fixed #22796 -- Added a more basic explanations of forms.
Thanks bmispelon, kezabelle, jorgecarleitao, and timgraham for reviews.
2014-06-24 14:55:22 -04:00
Anubhav Joshi dbbcfca476 Fixed #21668 -- Return detailed error page when SuspiciousOperation is raised and DEBUG=True
Thanks GDorn and gox21 for report.

Thanks Tim Graham for idea and review.
2014-06-24 08:55:36 -04:00
Tim Graham 150d88cc2c Restored is_anonymous() check in ModelBackend permission checking removed in refs #17903.
Thanks Florian Apolloner for raising the issue.
2014-06-24 07:09:38 -04:00
Claude Paroz 460ec09d2e Fixed #22880 -- Added FAQ entry about UnicodeDecodeError
Thanks Víðir Valberg Guðmundsson for the report and
Tim Graham for the review.
2014-06-24 09:02:28 +02:00
Jorge C. Leitão c33447a50c Fixed #17903 -- Modified ModelBackend to eliminate permissions on inactive users.
Thanks to @SmileyChris for the report and @timgraham for review.
2014-06-23 19:57:20 -04:00
Tim Graham 535219e4f7 Fixed typo: MultipleModelChoiceField -> ModelMultipleChoiceField. 2014-06-23 18:50:51 -04:00
Tim Graham 1bbffe7867 Fixed #22888 -- Removed some unnecessary text in tutorial 3. 2014-06-23 09:10:44 -04:00
Claude Paroz 9618d68b34 Fixed #8033 -- Explained app registry error during translation setup
Thanks Tim Graham and Aymeric Augustin for the review.
2014-06-23 09:31:45 +02:00
Tim Graham 1892ced10a Added refs #22514 to 1.6.6 release notes. 2014-06-20 18:47:14 -04:00
Marc Tamlyn 2764146586 Fixed #22838 -- Deprecated ModelChoiceField.cache_choices.
Undocumented, untested and probably not even useful feature.
2014-06-20 20:29:46 +01:00