Commit Graph

2219 Commits

Author SHA1 Message Date
Florian Apolloner 11932e978f Merge pull request #2346 from Markush2010/ticket21905
Fixed #21905 -- Add info message if DateField or TimeField use a fixed value
2014-05-17 12:09:04 +02:00
Markus Holtermann 9d8c73f6a1 Fixed #21905 -- Add info message if DateField or TimeField use a fixed value 2014-05-16 18:59:31 +02:00
Moritz e7ffba8f78 Fixed #22167 -- Improved documentation on context processors
Clarified the explanation on the order in which user provided variables
to render_to_response, RequestContext and context processors are
loaded.
2014-05-16 18:26:37 +02:00
Russell Keith-Magee 2c176eb95c Refs #21798 - Modified error number to provide room for future expansion. 2014-05-16 15:41:17 +02:00
Daniel Pyrathon cb15231888 Fixed #21798 -- Added check for DateTime mutually exclusive options
Added DateTimeCheckMixin to avoid the use of default, auto_now, and
auto_now_add options together. Added the fields.E151 Error that is raised
if one or more of these options are used together.
2014-05-16 05:57:19 -04:00
Claude Paroz e520a73eee Harmonized some PEP 0263 coding preambles 2014-05-15 19:58:41 +02:00
Anders Steinlein 4ef10f245a Fixed #17642 -- Added min_num support to modelformsets, inlines, and the admin.
Thanks Stephen Burrows for work on the patch as well.

Forwardport of 2914f66983 from stable/1.7.x
2014-05-15 07:25:35 -04:00
Éric Araujo 5ab95168cc Fix typo that disabled code example highlighting 2014-05-14 18:34:59 -04:00
Tim Graham a06808d370 Removed an unnecessary anchor in the docs. 2014-05-13 20:54:32 -04:00
Julen Ruiz Aizpuru 5eb81ce445 Fixed #22533 -- Added label_suffix parameter to form fields.
Fields can now receive the `label_suffix` attribute, which will override
a form's `label_suffix`.

This enhances the possibility to customize form's `label_suffix`, allowing
to use such customizations while using shortcuts such as
`{{ form.as_p }}`.

Note that the field's own customization can be overridden at runtime by
using the `label_prefix` parameter to `BoundField.label_tag()`.

Refs #18134.
2014-05-13 09:09:33 -04:00
Tim Graham 57296b4162 Removed some references to django.contrib.comments which has been removed. 2014-05-13 07:24:28 -04:00
Tim Graham c501662f3c Fixed #22618 -- Improved import_string example.
Thanks ewjoachim for the sugggestion.
2014-05-13 07:04:49 -04:00
Tim Graham 986bd41f8a Fixed #22613 -- Added formfield_for_choice_field() to the list of methods that InlineModelAdmin supports. 2014-05-12 06:59:23 -04:00
Alex Gaynor b57ee15b12 Merge pull request #2639 from alimony/patch-1
Insert space
2014-05-07 16:43:57 -07:00
Andrew Godwin 5a917cfef3 Fixed #22496: Data migrations get transactions again! 2014-05-07 14:28:34 -07:00
Markus Amalthea Magnuson 8eb51a8cf6 Insert space. 2014-05-07 21:16:43 +02:00
Claude Paroz 7951f125e7 Updated the messages context processor docs
Refs #20610.
2014-05-06 20:37:52 +02:00
Tim Graham fb7c347f7b Fixed #1349 -- Clarified docs on serving files from STATIC/MEDIA_URL. 2014-05-05 07:36:53 -04:00
Loic Bistuer d1799233f4 Fixed clash caused by the newly introduced -e shorthand for makemessages --exclude.
This fixes a regression caused by 0707b82. Refs #22328.
2014-05-02 23:07:17 +07:00
Simon Charette 24ec9538b7 Fixed #19195 -- Allow explicit ordering by a relation `_id` field.
Thanks to chrisedgemon for the report and shaib, akaariai and
timgraham for the review.
2014-04-30 14:23:19 -04:00
Mike Fogel 7fd1b35ed7 Fixed #22537 -- Add tests and improved docs for field subclass with choices. 2014-04-30 07:56:52 -04:00
Tim Graham ab8d8e00c9 Improved formatting and links of migration docs. 2014-04-27 15:05:41 -04:00
Aymeric Augustin 58ed387db3 Documented django.setup().
Thanks Eric Holscher and Tim Graham for the review.
2014-04-26 20:13:59 +02:00
Aymeric Augustin 8b5b199e20 Fixed #3214 -- Stopped parsing SQL with regex.
Avoided introducing a new regex-based SQL splitter in the migrations
framework, before we're bound by backwards compatibility.

Adapted this change to the legacy "initial SQL data" feature, even
though it's already deprecated, in order to facilitate the transition
to migrations.

sqlparse becomes mandatory for RunSQL on some databases (all but
PostgreSQL). There's no API to provide a single statement and tell
Django not to attempt splitting. Since we have a more robust splitting
implementation, that seems like a good tradeoff. It's easier to add a
new keyword argument later if necessary than to remove one.

Many people contributed to both tickets, thank you all, and especially
Claude for the review.

Refs #22401.
2014-04-26 17:46:23 +02:00
Claude Paroz 680a0f08b1 Updated doc links to point to Python 3 documentation 2014-04-26 16:02:53 +02:00
Ana Krivokapic 0707b824fe Fixed #22328 -- Added --exclude option to compilemessages and makemessages. 2014-04-26 17:07:44 +07:00
Aymeric Augustin 0315f01087 Fixed a confusing heading in applications docs.
Refs #22422.
2014-04-25 17:39:49 +02:00
Víðir Valberg Guðmundsson deb561bbe2 Fixed #22422 -- Moved information about the application loading process to refs/applications.txt. 2014-04-25 10:12:31 -04:00
Moayad Mardini 3776926cfe Fixed #22493 - Added warnings to raw() and extra() docs about SQL injection
Thanks Erik Romijn for the suggestion.
2014-04-25 09:54:49 -04:00
Marti Raudsepp 11d453bcad Various documentation typo/spelling fixes
Errors detected by Topy (https://github.com/intgr/topy), all changes
verified by hand.
2014-04-23 02:31:49 +03:00
Erik Romijn 75c0d4ea3a Fixed queries that may return unexpected results on MySQL due to typecasting.
This is a security fix; disclosure to follow shortly.
2014-04-21 18:11:26 -04:00
Matt Lauber b2514c02e1 Corrected the section identifier for MySQL unicode reference. 2014-04-21 13:19:46 -04:00
Aymeric Augustin bbe818b23c Changed paths in docs that referred to Python 2. 2014-04-20 08:34:01 +02:00
Tim Graham 26d118c3fe Moved RemoteUserBackend documentation to reference guide. 2014-04-18 16:06:26 -04:00
Moayad Mardini 11ac50b18e Fixed #22458 -- Added a note about MySQL utf8_unicode_ci collation
Thanks tobami at gmail.com for the report.
2014-04-18 15:10:21 -04:00
Tim Graham b43bbd6d39 Fixed #22473 -- Emphasized that Model.clean() is not called from Model.save(). 2014-04-18 15:00:26 -04:00
Claude Paroz 3cea917e3e Confirmed support for PostGIS 2.1 and GDAL 1.10
Refs #22456.
2014-04-17 21:23:14 +02:00
chriscauley 66ec9ee441 Fixed #22378 -- Updated \d to [0-9]+ in urlpatterns of docs and tests.
Thanks tomwys for the suggestion.
2014-04-16 20:36:29 -04:00
Ben Davis 030dd4f72c Fixed #22220 -- Added more examples to reverse() documention.
Thanks EvilDMP for the suggestions.
2014-04-16 20:29:17 -04:00
Tim Graham b5ce21accb Fixed spelling errors in documentation. 2014-04-16 09:39:00 -04:00
Tim Graham 465980d070 Added RemoteUserMiddleware to middleware reference page. 2014-04-16 07:22:15 -04:00
Marc Egli 0bcc92c691 Fixed #22356 -- Added a check to make sure unique_together fields are local. 2014-04-14 16:49:40 -04:00
Andrew Godwin 09af48c70f Improve migrations/schema docs 2014-04-14 13:07:02 -04:00
arachnegl 8da86fd19b Fixed #22398 -- Added detail about callable in KEY_FUNCTION docs 2014-04-13 18:52:43 -04:00
Tim Graham d5031ecf88 Fixed #21353 -- Noted that description is ignored for TabularInlines.
Thanks nofinator for the report.
2014-04-10 13:31:59 -04:00
Tim Graham 395d75ea6b Fixed #22194 -- Added --list-tags option to check command.
Thanks Elvard for the patch.
2014-04-10 09:43:55 -04:00
Shai Berger 59b1d3098f Documentation fixes for the select_for_update change.
Refs #22343; thanks Tim Graham for the fixes.
2014-04-10 03:40:33 +03:00
Shai Berger f095356ba2 Fixed #22343 -- Disallowed select_for_update in autocommit mode
The ticket was originally about two failing tests, which are
fixed by putting their queries in transactions.

Thanks Tim Graham for the report, Aymeric Augustin for the fix,
and Simon Charette, Tim Graham & Loïc Bistuer for review.
2014-04-10 03:04:51 +03:00
ejstronge 5ca522b9ed Fixed small typo in django-admin.txt
The word 'by' seemed to be missing from the first line of the compilemessages command.
2014-04-08 23:58:40 -04:00
Tim Graham 868f37183b Fixed some spelling issues in docs. 2014-04-08 10:08:25 -04:00