Tim Graham
5fb7086b6b
[1.6.x] Fixed #23974 -- Clarified wording of FileField.save/delete save parameter.
...
Thanks GreenAsJade.
Backport of 1aa41dd000e0779c8b1de1f8e7aa4a0f2f752655 from master
2014-12-08 13:18:32 -05:00
Tim Graham
e24ec760f1
[1.6.x] Fixed #23965 -- Mentioned that FieldFile inherits from File
...
Backport of 5281d9620d13386fd4403f7aa6b9a2afd9b5a93f from master
2014-12-06 11:52:26 -05:00
Michal Petrucha
614dd44d0d
[1.6.x] Fixed #23817 -- Updated docs on QuerySet evaluation
...
Removed inaccurate info about partial evaluation after refs #18702 .
Added information on modifying sliced QuerySets; refs #22503 .
Backport of 327df551e89a505c5756becee97c40198f38aff2 from master
2014-11-20 09:35:41 -05:00
Tim Graham
b078ccf8bf
[1.6.x] Fixed #23774 -- Clarified QuerySet.order_by() and related models.
...
Backport of 11b7680d0e from master
2014-11-12 22:01:12 +01:00
Raul Cumplido
10890606bc
[1.6.x] Fixed #23725 -- Substituted AUTH_USER_MODEL for User in docs.
...
Backport of 68d3db8a7b from master
2014-10-30 08:30:38 -04:00
Oliver Meinusch
deb11b0edf
[1.6.x] Fixed QuerySet datetimes argument name in docs.
...
Backport of 6b39401baf from master
2014-10-27 19:50:25 -04:00
Jon Dufresne
7d90fed1a0
[1.6.x] Fixed #23676 -- Rearranged sentence; "by default" applies only to max length
...
Backport of c1b9f99a81 from master
2014-10-18 06:56:18 -04:00
jnothman
0004156873
[1.6.x] Added flat=False to signature of QuerySet.values_list()
...
Backport of 20f868bc5a from master
2014-10-01 13:10:18 -04:00
Simon Charette
ce4057591a
[1.6.x] Corrected a usage example of related_query_name
.
...
Thanks to Petr Glotov for spotting this.
Backport of 05a8cef428 from master
2014-08-29 23:12:24 -04:00
Tim Graham
3cd3b49eb5
[1.6.x] Fixed #17272 -- Documented that non-editable fields are skipped during model validation.
...
Thanks mitar for the report.
Backport of c587bd5a94 from master
2014-08-19 07:18:42 -04:00
Tim Graham
190d81179f
[1.6.x] Fixed #4991 -- Emphasized XSS ramifications of help_text not being escaped.
...
Backport of 5dbe2a9431 from master
2014-08-19 06:16:41 -04:00
Tim Graham
0dfc37669d
[1.6.x] Updated MySQL links to version 5.6.
...
Backport of fb4f3e04b1 from master
2014-08-02 10:27:34 -04:00
Moayad Mardini
6c70b1d7df
[1.6.x] Fixed #22491 -- documented how select_for_update() should be tested.
...
Thanks Andreas Pelme for the report.
Backport of 668d432d0a from master
2014-07-28 10:58:34 -04:00
David Hoffman
e3a99357cb
[1.6.x] Fixed #22553 -- Added refreshing queryset info to docs.
...
Backport of 6d5daa30cf from master
2014-07-26 10:27:49 -04:00
Jorge C. Leitão
6b52e1793c
[1.6.x] Fixed #14481 -- Documented implicit "through" class created by ManyToManyField.
...
Thanks to jonathanmorgan for the report and initial patch.
Backport of de90129070 from master
2014-06-18 12:39:36 -04:00
Claude Paroz
631d0bb2da
[1.6.x] Fixed #22813 -- Updated Pillow URL in documentation
...
Backport of dfa3505ff1 from master.
2014-06-12 08:58:29 +02:00
Guillaume Pannatier
08bd249fa2
[1.6.x] Fixed #22710 -- Amended aggregation note for empty QuerySets
...
Thanks smeaton for report and Joël Rochat for spell check
Backport of 7f27cca5c5 from master
2014-06-04 12:45:27 -04:00
Guillaume Pannatier
4c358df66a
[1.6.x] Fixed #22710 -- Documented aggregation behavior for empty QuerySets.
...
Thanks matklad for the report.
Backport of 7c6e96ec1f from master
2014-05-30 08:05:48 -04:00
Moayad Mardini
2b0e9aa57d
[1.6.x] Fixed #22493 - Added warnings to raw() and extra() docs about SQL injection
...
Thanks Erik Romijn for the suggestion.
Backport of 3776926cfe503f16c7195621da20c5b89bda70a2 from master
2014-04-25 09:56:39 -04:00
Erik Romijn
5f0829a27e
[1.6.x] Fixed queries that may return unexpected results on MySQL due to typecasting.
...
This is a security fix. Disclosure will follow shortly.
Backport of 75c0d4ea3ae48970f788c482ee0bd6b29a7f1307 from master
2014-04-21 18:30:27 -04:00
Tim Graham
839deb7a77
[1.6.x] Fixed #22473 -- Emphasized that Model.clean() is not called from Model.save().
...
Backport of b43bbd6d39 from master
2014-04-18 15:03:30 -04:00
Shai Berger
d5cef2a19c
[1.6.x] Documentation fixes for the select_for_update change.
...
Refs #22343 ; thanks Tim Graham for the fixes.
2014-04-10 03:44:45 +03:00
Shai Berger
690a5984a3
[1.6.x] 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.
Backport of b990df1d63 from master
2014-04-10 02:15:14 +03:00
Adam Kaliński
38096da5c0
[1.6.x] Fixed #22048 - Enhanced docs to cover nonexistent one-to-one relationships.
...
Thanks EvilDMP for the suggestion.
Backport of ec08d62a20 from master
2014-03-24 09:45:56 -04:00
Tim Graham
0726482c9d
[1.6.x] Replaced an instance of PIL with Pillow in the docs.
...
Backport of 563d6a6bba from stable/1.7.x
2014-03-21 11:25:18 -04:00
navneet suman
f2b513c9e8
[1.6.x] Fixed #22145 -- Clarified docs on Field.blank and Field.null options.
...
Thanks skipjack at peru.com for the suggestion.
Backport of 3390550f6f from master
2014-02-25 21:01:02 -05:00
Tim Graham
c91e772b3a
[1.6.x] Fixed some punctuation; thanks Chris Jerdonek.
...
Backport of 81830ce34f from master
2014-01-23 09:05:09 -05:00
Tim Graham
b1cc1633e0
[1.6.x] Fixed #18285 -- Documented that bulk_create doesn't work with M2M relationships.
...
Backport of 9173d2cb74 from master
2014-01-16 20:49:06 -05:00
Kevin Christopher Henry
dd7e2925dd
[1.6.x] Fixed #21632 -- Docs: Removed example with callable as query parameter
...
Using callables as query parameters is undocumented and not working,
so this changes an example from the ForeignKey.limit_choices_to
documentation that uses it.
Backport of d34c8c338a from master
2013-12-18 12:37:56 -05:00
Tim Graham
6a36b71fc2
[1.6.x] Fixed typo in docs/ref/models/fields.txt
...
Backport of dfc95d240d from master.
2013-12-15 10:51:58 -05:00
Ludwik Trammer
593ec42ad1
[1.6.x] Fixed #21507 -- Corrected default widget information for FileField
...
Backport of 70e61310d6 from master
2013-11-25 08:27:27 -05:00
Markus Amalthea Magnuson
47abfa237e
[1.6.x] Fixed #21427 -- Clearly state integer field value ranges in docs
...
Added an explicit mention of the exact value ranges for integer type
fields that are safe in all databases supported by Django. Also, put
all value numbers inside double ticks.
Backport of b6a6cf4ab791b092e18ab16537aa88dd7ae9bc36 from master.
2013-11-21 14:17:58 +01:00
Dominic Rodger
a9c50fccf2
[1.6.x] Fixed #20852 - Fixed incorrectly generated left quotes in docs.
...
Sphinx generates left single quotes for apostrophes after
code markup, when right single quotes are required. The
easiest way to fix this is just by inserting the unicode
character for a right single quote.
Instances of the problem were found by looking for
">‘" in the generated HTML.
Backport of c33d1ca1d98003de29cdecb6080b52c5c52139bd from master.
2013-11-18 16:03:00 +01:00
Shai Berger
27f3f34136
Fixed #13245 : Explained Oracle's behavior w.r.t db_table
...
and how to prevent table-name truncation
Thanks russellm & timo for discussion, and timo for review.
Backported from master 317040a73b77be8f8210801793b2ce6d1a69301e
2013-10-23 15:01:05 +03:00
Juergen Schackmann
f198abc7e4
[1.6.x] Fixed #21212 -- Documented the reverse name for OneToOneField.
...
Thanks bjb at credil.org for the report.
Backport of f8632572ad from master
2013-10-18 16:22:41 -04:00
Tim Graham
06b149e220
[1.6.x] Fixed #10913 -- Documented how related_name affects QuerySet filtering
...
Thanks neithere for the suggestion.
Backport of 75bb6ba966 from master
2013-10-02 12:13:44 -04:00
mlissner
14f76b15c4
[1.6.x] Correct very minor typo
...
Just changed as to has.
Backport of d8f2d940cc from master
2013-09-21 18:18:42 -04:00
Matt Austin
a929adfd3b
[1.6.x] Fixed #21095 -- Documented new requirement for dates lookups.
...
Day, month, and week_day lookups now require time zone definitions in the database.
Backport of 9451d8d from master.
2013-09-13 10:20:13 +02:00
Tim Graham
01ad508514
[1.6.x] Fixed spelling; refs #16895 .
...
Thanks Panagiotis Issaris for the report.
Backport of fb51c9a0f2 from master
2013-09-09 11:31:25 -04:00
e0ne
276e053803
[1.6.x] Fixed #16895 -- Warned about cost of QuerySet ordering
...
Thanks outofculture at gmail.com for the suggestion.
Backport of cbf08c6b0c from master
2013-09-09 09:49:15 -04:00
Aymeric Augustin
01edcf70f2
Fixed #20409 -- Clarified how unique_for_date works when USE_TZ is set.
2013-09-07 14:09:52 -05:00
Eric Boersma
180b9955cc
[1.6.x] Fixed #21035 -- Changed docs to treat the acronym SQL phonetically.
...
The documentation and comments now all use 'an' to
refer to the word SQL and not 'a'.
Backport of 4d13cc56de from master
2013-09-05 20:16:14 -04:00
Tim Graham
0089a9a854
[1.6.x] Fixed typo in docs/ref/models/options.txt
...
Backport of a89c856a7a from master
2013-08-30 21:07:04 -04:00
Anssi Kääriäinen
76e38a2177
[1.6.x] Fixed #20988 -- Added model meta option select_on_save
...
The option can be used to force pre 1.6 style SELECT on save behaviour.
This is needed in case the database returns zero updated rows even if
there is a matching row in the DB. One such case is PostgreSQL update
trigger that returns NULL.
Reviewed by Tim Graham.
Refs #16649
Backport of e973ee6a9879969b8ae05bb7ff681172cc5386a5 from master
Conflicts:
django/db/models/options.py
tests/basic/tests.py
2013-08-30 09:47:34 +03:00
Kevin Christopher Henry
69a4594cb7
[1.6.x] Documentation -- Corrected error about Model.full_clean()
...
Although the ModelForm validation code was changed to call
Model.full_clean(), the documentation still said otherwise. The
offending phrase was removed.
Backport of bb011cf809 from master
2013-08-21 17:46:18 -04:00
Kevin Christopher Henry
e7d4d41a30
[1.6.x] Documentation - Noted that OneToOneField doesn't respect unique.
...
Added OneToOneField to the list of model fields for which the unique
argument isn't valid. (OneToOneFields are inherently unique, and if
the user supplies a value for unique it is ignored / overwritten.)
2013-08-20 21:20:55 -07:00
Christopher Medrela
6264e39c34
[1.6.x] Added note to GenericIPAddressField documentation
...
refs #20484
Backport of fb26c4996a from master
2013-08-08 05:17:54 -04:00
Jimmy Song
ea7bef318f
[1.6.x] Fixed #20859 - Clarified Model.clean() example.
...
Backport of 94d7fed775 from master
2013-08-05 09:06:36 -04:00
Daniele Procida
74205c4a3c
[1.6.x] Fixed #20842 and #20845 - Added a note on order_by() and improved prefetch_related() docs.
...
Backport of e8183a8193 from master
2013-08-04 12:35:31 -04:00
Tim Graham
b3e54f4a01
[1.6.x] Removed unused model option "admin"
...
Backport of 5df84b268d from master
2013-08-01 12:33:19 -04:00