Matthew Somerville
2dc93bb10a
Fixed #22316 -- Added time filters to TimeField on SQLite.
...
This was implemented for non-SQLite backends in 1.7 (as a
side effect of #16187 ).
2015-06-04 22:27:13 -04:00
Jon Dufresne
44f3ee7716
Fixed #9596 -- Added date transform for DateTimeField.
2015-06-02 08:49:10 -04:00
Przemysław Suliga
d29ed3f355
Fixed #24880 -- Added more explicit docs on select_for_update() on SQLite.
2015-06-01 08:53:12 -04:00
Alexander Sosnovskiy
04e8d890ae
Fixed #16891 -- Made Model/QuerySet.delete() return the number of deleted objects.
2015-05-22 13:27:16 -04:00
David Krisch
1a62f19707
Fixed #24763 -- Moved DoesNotExist exception to model docs.
2015-05-08 13:05:50 -04:00
Tim Graham
2d76b61dc2
Fixed #24649 -- Allowed using Avg aggregate on non-numeric field types.
2015-04-25 13:06:14 -04:00
Richard Eames
dd99f57710
Fixed #24613 -- Added example to QuerySet.defer() documentation
2015-04-22 19:18:57 -04:00
Jon Dufresne
b5e0eede40
Fixed #22394 -- Refactored built-in datetime lookups to transforms.
2015-04-20 15:11:11 -04:00
Tim Graham
e9fdecf984
Removed DateTimeQuerySet from docs.
...
Obsolete since refs #23867 .
2015-04-18 10:14:22 -04:00
Tim Graham
b9d9ab23bd
Refs #24462 -- Emphasized that order_by() clears previous ordering.
2015-03-13 15:40:25 -04:00
Sean Wang
a3e89f13df
Fixed #24414 -- Added examples of Prefetch object usage to the docs.
2015-03-11 12:38:25 -04:00
Josh Schneier
7d363ed432
Fixed typos of "select_related" in docs and tests.
2015-02-04 07:31:43 -05:00
Tim Graham
c79faae761
Removed versionadded/changed notes for 1.7.
2015-02-01 21:02:40 -05:00
Loic Bistuer
4c3bfe9053
Fixed #24211 -- Removed ValuesQuerySet() and ValuesListQuerySet().
...
Thanks Anssi Kääriäinen, Marc Tamlyn, and Tim Graham for the reviews.
2015-01-30 22:02:58 +07:00
Collin Anderson
ee23e03637
Fixed #24190 -- Clarified len(queryset)
2015-01-24 10:14:18 -05:00
Josh Smeaton
21b858cb67
Fixed #24060 -- Added OrderBy Expressions
2015-01-13 09:39:55 +11:00
Ng Zhi An
8f5d6c77b6
Fixed #23878 -- Moved Query and Prefetch documentation
2015-01-12 11:35:20 -05:00
Jon Dufresne
4468c08d70
Fixed #23968 -- Replaced list comprehension with generators and dict comprehension
2014-12-08 07:58:23 -05:00
Michal Petrucha
327df551e8
Fixed #23817 -- Updated docs on QuerySet evaluation
...
Removed inaccurate info about partial evaluation after refs #18702 .
Added information on modifying sliced QuerySets; refs #22503 .
2014-11-20 09:33:32 -05:00
Josh Smeaton
f59fd15c49
Fixed #14030 -- Allowed annotations to accept all expressions
2014-11-15 14:00:43 +00:00
Tim Graham
11b7680d0e
Fixed #23774 -- Clarified QuerySet.order_by() and related models.
2014-11-12 22:00:48 +01:00
Berker Peksag
5c517ec218
Fixed versionchanged indentation in docs/.
2014-11-03 21:40:26 -05:00
Tim Graham
e958c760f9
Fixed #23732 -- Corrected and enhanced select_related() docs.
...
Thanks Daniele Procida for the report and review.
2014-10-31 15:40:07 -04:00
Oliver Meinusch
6b39401baf
Fixed QuerySet datetimes argument name in docs.
2014-10-27 19:48:29 -04:00
jnothman
20f868bc5a
Added flat=False to signature of QuerySet.values_list()
2014-10-01 13:06:30 -04:00
Matt Robenolt
ef5f9b6ae8
Fixed #23460 -- Added literal `%s` support to extra() QuerySets.
2014-09-26 13:01:27 -04:00
Tim Graham
fb4f3e04b1
Updated MySQL links to version 5.6.
2014-08-02 10:27:01 -04:00
Tim Graham
66630f589c
Fixed #23134 -- Fixed typos in docs/ref/models/querysets.txt.
...
Thanks Josh Kupershmidt.
2014-07-30 13:03:54 -04:00
Moayad Mardini
668d432d0a
Fixed #22491 -- documented how select_for_update() should be tested.
...
Thanks Andreas Pelme for the report.
2014-07-28 10:57:12 -04:00
David Hoffman
6d5daa30cf
Fixed #22553 -- Added refreshing queryset info to docs.
2014-07-26 10:27:02 -04:00
Tim Graham
5f919b9c81
Fixed #23094 -- Removed redundant argument in select_related() example.
...
Thanks thegeekofalltrades at gmail.com for the report.
2014-07-24 13:57:00 -04:00
Jorge C. Leitão
8780849da0
Fixed #22812 -- Refactored lookup API documentation.
...
Thanks Anssi and Tim for reviews.
2014-07-08 20:05:49 -04:00
Anubhav Joshi
42736ac8e8
Fixed #21430 -- Added a RuntimeWarning when unpickling Models and QuerySets from a different Django version.
...
Thanks FunkyBob for the suggestion, prasoon2211 for the initial patch,
and akaariai, loic, and charettes for helping in shaping the patch.
2014-06-11 10:03:34 -04:00
Guillaume Pannatier
7f27cca5c5
Fixed #22710 -- Amended aggregation note for empty QuerySets
...
Thanks smeaton for report and Joël Rochat for spell check
2014-06-04 12:44:58 -04:00
Guillaume Pannatier
7c6e96ec1f
Fixed #22710 -- Documented aggregation behavior for empty QuerySets.
...
Thanks matklad for the report.
2014-05-30 08:01:21 -04: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
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
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
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
Tim Graham
51c8045145
Removed versionadded/changed annotations for 1.6.
2014-03-24 11:42:56 -04:00
Claude Paroz
3a97f992fb
Fixed #22313 -- Removed 'u' prefixes from documentation
2014-03-22 21:32:20 +01:00
Bryan Helmig
f2eea960e0
Fixed minor syntax error in Queryset docs
2014-03-21 11:02:15 +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
Tim Graham
1f5f015c32
Fixed spelling mistakes in docs.
2014-02-28 21:03:46 -05:00
Artur Frysiak
faf6a911ad
Fixed #22023 -- Raised an error for values() followed by defer() or only().
...
Previously, doing so resulted in invalid data or crash.
Thanks jtiai for the report and Karol Jochelson,
Jakub Nowak, Loic Bistuer, and Baptiste Mispelon for reviews.
2014-02-17 14:46:13 -05:00
chomik
985ae732b2
Fixed #21884 -- Mentioned that exact is the defaut QuerySet lookup type
...
Thanks to cjerdonek for the suggestion.
2014-02-15 17:17:58 +01:00
Alasdair Nicol
8aa1efff6d
Fixed #21951 -- Updated docs to use __str__ for Python 3
...
Thanks Tim Graham for the report and recommendations
2014-02-13 07:12:40 -05:00
Simon Charette
10e3faf191
Fixed #19774 -- Deprecated the contenttypes.generic module.
...
It contained models, forms and admin objects causing undesirable
import side effects. Refs #16368 .
Thanks to Ramiro, Carl and Loïc for the review.
2014-01-26 14:42:30 -05:00
Tim Graham
81830ce34f
Fixed some punctuation; thanks Chris Jerdonek.
2014-01-23 09:01:26 -05:00