1
0
mirror of https://github.com/django/django.git synced 2025-03-14 19:30:46 +00:00

457 Commits

Author SHA1 Message Date
Helen Sherwood-Taylor
b9169a100d [1.7.x] Fixed #24041 -- Documented effect of changing a model instance's primary key.
Backport of 4ccdf6e57f49d7e981dcd88c1db65229b8b92487 from master
2014-12-24 15:07:27 -05:00
Tim Graham
6022da4f48 [1.7.x] Fixed #23974 -- Clarified wording of FileField.save/delete save parameter.
Thanks GreenAsJade.

Backport of 1aa41dd000e0779c8b1de1f8e7aa4a0f2f752655 from master
2014-12-08 13:18:23 -05:00
Tim Graham
284496e692 [1.7.x] Fixed #23965 -- Mentioned that FieldFile inherits from File
Backport of 5281d9620d13386fd4403f7aa6b9a2afd9b5a93f from master
2014-12-06 11:52:22 -05:00
Alasdair Nicol
f91c6ecc22 [1.7.x] Fixed #23865 -- documented how to assign errors to a field in Model.clean()
Also added a unit test wit the simpler syntax which we have documented,
where the dictionary values are strings.

Backport of 5b26a014a81ba0d404d46e11d2b45c01d92b97e5 from master
2014-11-21 13:02:40 -05:00
Michal Petrucha
593353d8af [1.7.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:29 -05:00
Tim Graham
3e0d7de8a6 [1.7.x] Fixed #23774 -- Clarified QuerySet.order_by() and related models.
Backport of 11b7680d0e from master
2014-11-12 22:01:07 +01:00
Berker Peksag
c3b101fae5 [1.7.x] Fixed versionchanged indentation in docs/.
Backport of 5c517ec218 from master
2014-11-03 21:43:21 -05:00
Tim Graham
e876c7f1ee [1.7.x] Fixed #23732 -- Corrected and enhanced select_related() docs.
Thanks Daniele Procida for the report and review.

Backport of e958c760f9 from master
2014-10-31 15:40:34 -04:00
Raul Cumplido
9d1c5088bd [1.7.x] Fixed #23725 -- Substituted AUTH_USER_MODEL for User in docs.
Backport of 68d3db8a7b from master
2014-10-30 08:30:06 -04:00
Oliver Meinusch
9766ed6a0e [1.7.x] Fixed QuerySet datetimes argument name in docs.
Backport of 6b39401baf from master
2014-10-27 19:49:50 -04:00
Jon Dufresne
37ab955d69 [1.7.x] Fixed #23676 -- Rearranged sentence; "by default" applies only to max length
Backport of c1b9f99a81 from master
2014-10-18 06:56:12 -04:00
Carl Meyer
b3569b3a82 [1.7.X] Fixed #23602 -- Add comment on get_absolute_url regarding user input
Backport of 04bd84786d39b8a17620dfb3b354599d8d95417b from master.
2014-10-06 11:30:33 -06:00
jnothman
b21ec1ab6e [1.7.x] Added flat=False to signature of QuerySet.values_list()
Backport of 20f868bc5a from master
2014-10-01 13:10:14 -04:00
Andrew Godwin
ffa9e60638 [1.7.x] Fixed #22534: Reinforce swappable documentation 2014-09-05 11:41:22 -07:00
Thomas Chaumeny
0bc67a16d3 [1.7.x] Fixed documentation links to Query Expression API.
Backport of d7a9659110 from master
2014-09-04 09:45:35 -04:00
Simon Charette
0396001830 [1.7.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:11:37 -04:00
Tim Graham
89f33f427e [1.7.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:39 -04:00
Tim Graham
c3c686b92d [1.7.x] Fixed #4991 -- Emphasized XSS ramifications of help_text not being escaped.
Backport of 5dbe2a9431 from master
2014-08-19 06:16:36 -04:00
Tim Graham
2ff2809c73 [1.7.x] Updated MySQL links to version 5.6.
Backport of fb4f3e04b1 from master
2014-08-02 10:27:26 -04:00
Tim Graham
7dc29dcb99 [1.7.x] Fixed #23134 -- Fixed typos in docs/ref/models/querysets.txt.
Thanks Josh Kupershmidt.

Backport of 66630f589c from master
2014-07-30 13:04:38 -04:00
Moayad Mardini
acbe3fac7c [1.7.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:57:49 -04:00
David Hoffman
1ef544f91f [1.7.x] Fixed #22553 -- Added refreshing queryset info to docs.
Backport of 6d5daa30cf from master
2014-07-26 10:27:46 -04:00
Tim Graham
5822ca6c10 [1.7.x] Fixed #23094 -- Removed redundant argument in select_related() example.
Thanks thegeekofalltrades at gmail.com for the report.

Backport of 5f919b9c81 from master
2014-07-24 14:10:27 -04:00
Jorge C. Leitão
bddea532f7 [1.7.x] Fixed #22809 -- Added model Field API reference.
Thanks to @timgraham for the review.

Backport of e1fa7dffdc from master
2014-07-10 06:05:05 -04:00
Tim Graham
9673013abe [1.7.x] Fixed #22351 -- Removed usage of lambdas in model field options.
Thanks claudep for review.

Backport of 5ebf03b7dd from master
2014-07-09 07:32:44 -04:00
Jorge C. Leitão
e548328851 [1.7.x] Fixed #22812 -- Refactored lookup API documentation.
Thanks Anssi and Tim for reviews.

Backport of 8780849da0 from master
2014-07-08 20:13:24 -04:00
Jorge C. Leitão
807aadaaad [1.7.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:38:49 -04:00
Tim Graham
aa10f57d94 [1.7.x] Fixed #22819 -- Renamed output_type -> output_field in query expression API.
Thanks jorgecarleitao for the suggestion.

Backport of 95cc0e15b4 from master
2014-06-17 12:06:12 -04:00
Andrew Godwin
a067c61b94 [1.7.x] Fixed #22660: Doc'd you can't have unmigrated apps depend on migrated 2014-06-15 11:47:57 -07:00
Claude Paroz
1c0e6e9d9f [1.7.x] Fixed #22813 -- Updated Pillow URL in documentation
Backport of dfa3505ff1 from master.
2014-06-12 08:56:29 +02:00
Guillaume Pannatier
52b7e772e4 [1.7.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:24 -04:00
Guillaume Pannatier
b266392b63 [1.7.x] Fixed #22710 -- Documented aggregation behavior for empty QuerySets.
Thanks matklad for the report.

Backport of 7c6e96ec1f from master
2014-05-30 08:05:43 -04:00
Matthew Schinckel
22d33d52cb [1.7.x] Fixed typo in docs/ref/models/custom-lookups.txt.
Backport of 2b432d4634 from master
2014-05-25 19:03:28 -04:00
Éric Araujo
d1860a3529 [1.7.x] Fixed typo that disabled code example highlighting
Backport of 5ab95168cc from master
2014-05-15 05:52:30 -04:00
Simon Charette
a6ecd5dbb3 [1.7.x] Fixed #19195 -- Allow explicit ordering by a relation _id field.
Thanks to chrisedgemon for the report and shaib, akaariai and
timgraham for the review.

Backport of 24ec9538b7 from master
2014-04-30 14:26:39 -04:00
Mike Fogel
bb5c7e4e8d [1.7.x] Fixed #22537 -- Add tests and improved docs for field subclass with choices.
Backport of 7fd1b35ed7 from master
2014-04-30 07:57:35 -04:00
Moayad Mardini
ae15356061 [1.7.x] Fixed #22493 - Added warnings to raw() and extra() docs about SQL injection
Thanks Erik Romijn for the suggestion.

Backport of 3776926cfe from master
2014-04-25 09:56:04 -04:00
Erik Romijn
34526c2f56 [1.7.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:29:39 -04:00
Tim Graham
a9ad081899 [1.7.x] Fixed #22473 -- Emphasized that Model.clean() is not called from Model.save().
Backport of b43bbd6d39 from master
2014-04-18 15:03:27 -04:00
Shai Berger
941f947bfd [1.7.x] Documentation fixes for the select_for_update change.
Refs #22343; thanks Tim Graham for the fixes.

Backport of 59b1d30 from master
2014-04-10 03:43:05 +03:00
Shai Berger
3a9a4570ef [1.7.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 01:44:30 +03:00
Anubhav Joshi
61b7fcf478 [1.7.x] Fixed #22405 -- Fixed string error in models/queries docs.
Backport of 36de29200e1ea713c278f7672ab1790e1500c423 from master.
2014-04-08 13:34:37 +02:00
Adam Kaliński
eb1600e9d1 [1.7.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:50 -04:00
Tim Graham
563d6a6bba [1.7.x] Replaced an instance of PIL with Pillow in the docs.
Done in 4965a774074780f3e4858bcc975476f71edf2c2c on master.
2014-03-21 11:23:59 -04:00
Bryan Helmig
cc8a800d0c [1.7.x] Fixed minor syntax error in Queryset docs
Backport of f2eea960e052db2d280e6dd016b0f8f23d5a8ef7 from master.
2014-03-21 11:14:57 +01:00
Akis Kesoglou
aaad3e27ac Fixed #22217 - ManyToManyField.through_fields fixes.
- Docs description of arguments mix up.
- Keep it from erroneously masking E332 check.
- Add checks E338 and E339, tweak message of E337.
2014-03-11 19:33:04 -03:00
Anssi Kääriäinen
219d928852 Fixed #21863 -- supplemented get_lookup() with get_transform()
Also fixed #22124 -- Expanded explanation of exactly what is going on in
as_sql() methods.
2014-03-07 14:52:13 +00:00
Akis Kesoglou
c627da0ccc Fixed #14549 - Removed restriction of single FKs on intermediary tables
Thanks to Loic Bistuer for review. Minor changes to error messages
done by committer.
2014-03-05 22:33:58 +02:00
Chris Wilson
95c74b9d69 Fixed #22206 -- Passed models.TextField.max_length to forms.CharField.maxlength 2014-03-05 20:09:28 +01:00
Loic Bistuer
7bbb6958dc Allowed custom querysets when prefetching single valued relations
The original patch for custom prefetches didn't allow usage of custom
queryset for single valued relations (along ForeignKey or OneToOneKey).
Allowing these enables calling performance oriented queryset methods like
select_related or defer/only.

Thanks @akaariai and @timgraham for the reviews. Refs #17001.
2014-03-03 21:35:19 +02:00