Sergey Fedoseev
|
62dee1483d
|
Refs #28370 -- Moved db converters deprecation warning to improve performance.
|
2017-08-01 08:05:32 -04:00 |
Sergey Fedoseev
|
58da81a5a3
|
Fixed #27985 -- Fixed query for __exact=value when get_prep_value() converts value to None.
Also fixed crash of .filter(field__transform=None).
|
2017-07-31 15:34:07 -04:00 |
Anssi Kääriäinen
|
6155bc4a51
|
Refs #20880 -- Removed non-cloning logic from Query.clone().
|
2017-07-31 15:31:29 -04:00 |
Anssi Kääriäinen
|
66933a6619
|
Refs #20880 -- Removed non-cloning logic from QuerySet._clone().
|
2017-07-31 13:57:45 -04:00 |
Sergey Fedoseev
|
0baea920c8
|
Fixed #28453 -- Made __exact=None lookup use transforms.
|
2017-07-31 13:31:04 -04:00 |
Sergey Fedoseev
|
aadd3aeb2b
|
Avoided creating temporary lists for obtaining the first item.
|
2017-07-31 11:02:23 -04:00 |
Sergey Fedoseev
|
0f905e4b44
|
Removed unneeded TruncBase.arity.
Uneeded since its introduction in 2a4af0ea43 .
|
2017-07-31 13:42:12 +05:00 |
Sergey Fedoseev
|
38988f289f
|
Avoided creation of temporary sets.
|
2017-07-29 10:16:43 -04:00 |
Sergey Fedoseev
|
99e7bba443
|
Prevented query_utils.refs_expression() from looking for empty string in annotations map.
|
2017-07-28 08:42:52 -04:00 |
Mariusz Felisiak
|
b61d5b1991
|
Fixed #28371 -- Fixed Cast() with CharField if the max_length argument isn't provided.
Thanks Tim Graham for the review.
|
2017-07-27 19:36:47 +02:00 |
Mariusz Felisiak
|
8e41373c81
|
Allowed database backends to specify data types for Cast().
A small refactor ahead of refs #28371.
|
2017-07-26 20:26:58 -04:00 |
Sergey Fedoseev
|
d17eaa868c
|
Removed obsolete references to add_to_query().
Support for it was removed in d3f00bd570 .
|
2017-07-25 07:52:05 -04:00 |
Tom Carrick
|
3159ad4df6
|
Fixed #27970 -- Allowed QuerySet.in_bulk() to fetch on fields besides primary key.
|
2017-07-21 08:34:35 -04:00 |
Simon Charette
|
76236f0db2
|
Stopped setting BaseExpression.copied on copy().
Unused since its introduction in f59fd15c49 .
|
2017-07-21 00:23:21 -04:00 |
orf
|
7dfe03f86d
|
Sorted display of options in Func.__repr__().
|
2017-07-20 20:51:07 -04:00 |
Tim Graham
|
487362fa8f
|
Fixed #28370 -- Deprecated the context arg of Field.from_db_value() and Expression.convert_value().
Unused since a0d166306f .
|
2017-07-20 16:30:08 -04:00 |
Sergey Fedoseev
|
37fbeb99f9
|
Removed unused models.DecimalField._format().
Unused since b3b71a0922 .
|
2017-07-20 09:00:18 -04:00 |
Sergey Fedoseev
|
33d453b2a7
|
Removed unneeded hasattr(self.rhs, 'get_compiler') checks in db/models/lookups.py.
Unneeded since 9ae4362bec .
|
2017-07-18 08:24:01 -04:00 |
Mariusz Felisiak
|
776cee9749
|
Fixed #28391 -- Fixed Cast() with CharField and max_length on MySQL.
Thanks Tim Graham for the review.
|
2017-07-17 21:12:27 +02:00 |
Mariusz Felisiak
|
e5835a7cb8
|
Allowed Func subclasses to add kwargs to __repr__().
Thanks Tim Graham for the review.
|
2017-07-17 10:07:19 -04:00 |
Florian Apolloner
|
adab280cef
|
Fixed #28399 -- Fixed QuerySet.count() for union(), difference(), and intersection() queries.
|
2017-07-15 08:20:12 -04:00 |
Sergey Fedoseev
|
504ce3914f
|
Fixed #28394 -- Allowed setting BaseExpression.output_field (renamed from _output_field).
|
2017-07-14 21:56:01 -04:00 |
Sergey Fedoseev
|
29769a9942
|
Fixed #28382 -- Prevented BaseExpression._output_field from being set if _resolve_output_field() fails.
|
2017-07-11 08:29:08 -04:00 |
Mariusz Felisiak
|
ca74e56350
|
Fixed #28378 -- Fixed union() and difference() when combining with a queryset raising EmptyResultSet.
Thanks Jon Dufresne for the report. Thanks Tim Graham and Simon Charette
for the reviews.
|
2017-07-10 20:40:08 +02:00 |
Tim Graham
|
31a2af1c01
|
Removed useless hasattr in UpdateQuery._setup_query().
The if statement always evaluates to True.
|
2017-07-08 08:12:46 -04:00 |
Tim Graham
|
23c529a774
|
Removed unused Query.clone() memo kwarg.
Unused since 23ca3a0194 .
|
2017-07-07 09:29:58 -04:00 |
Tim Graham
|
686772c177
|
Removed unused OrderWrt.deconstruct().
|
2017-07-06 18:45:53 -04:00 |
Mariusz Felisiak
|
df1106a40f
|
Fixed #28365 -- Unified DatabaseOperations.date_interval_sql() return value with similar methods.
|
2017-07-06 07:37:47 -04:00 |
Ran Benita
|
b9f7dce84b
|
Fixed #28010 -- Added FOR UPDATE OF support to QuerySet.select_for_update().
|
2017-06-29 16:00:15 -04:00 |
Mariusz Felisiak
|
6e228d0b65
|
Fixed #28277 -- Added validation of QuerySet.annotate() and aggregate() args.
Thanks Tim Graham and Nick Pope for reviews.
|
2017-06-29 18:25:36 +02:00 |
Anssi Kääriäinen
|
f7f5edd50d
|
Removed obsolete Query.tables attribute.
Obsolete since Query.alias_map became an OrderedDict (refs #26522).
|
2017-06-29 11:09:11 -04:00 |
Mads Jensen
|
550cb3a365
|
Fixed #27818 -- Replaced try/except/pass with contextlib.suppress().
|
2017-06-28 14:07:55 -04:00 |
Daniel Hahler
|
43a4835edf
|
Fixed #27473 -- Added DurationField support to Extract.
|
2017-06-28 10:10:09 -04:00 |
Mariusz Felisiak
|
3297dede7f
|
Fixed #28046 -- Added the db_tablespace parameter to class-based indexes.
Thanks Markus Holtermann and Tim Graham for reviews.
|
2017-06-27 21:15:15 +02:00 |
Mariusz Felisiak
|
617505ca89
|
Fixed #28330 -- Prevented passing positional arguments to an Index.
Thanks Tim Graham for the review.
|
2017-06-27 13:39:37 -04:00 |
Paulo Alvarado
|
c432927160
|
Fixed #26362 -- Fixed update of the inherited id field of an object when its parent changes.
|
2017-06-26 12:11:20 -04:00 |
Mariusz Felisiak
|
0f91ba1adc
|
Fixed #28329 -- Fixed Cast() with Big/Small/Positive/PositiveSmallIntegerField on MySQL.
|
2017-06-21 10:16:53 -04:00 |
Maciej Jaworski
|
dc63ad7ac0
|
Fixed #28319 -- Made TextField with choices use a Select widget.
|
2017-06-17 08:23:32 -04:00 |
chillaranand
|
fb0f987f7d
|
Fixed #27914 -- Added support for nested classes in Field.deconstruct()/__repr__().
|
2017-06-14 10:10:17 -04:00 |
Adam Bogdał
|
9f4e0fde0a
|
Moved common code to RelatedField.deconstruct().
|
2017-06-14 08:57:43 -04:00 |
Adam Bogdał
|
cd2fe829dd
|
Fixed #24195 -- Deconstructed the limit_choices_to option of related fields.
Migrations will now be created for changes to limit_choices_to.
|
2017-06-14 08:57:24 -04:00 |
Tim Graham
|
7acbe89cc2
|
Refs #23853 -- Updated sql.query.Query.join() docstring.
Follow up to ab89414f40 .
|
2017-06-13 14:16:52 -04:00 |
Mariusz Felisiak
|
82175ead72
|
Fixed #28293 -- Fixed union(), intersection(), and difference() when combining with an EmptyQuerySet.
Thanks Jon Dufresne for the report and Tim Graham for the review.
|
2017-06-13 08:16:16 +02:00 |
Tim Graham
|
3d0a0ecd2c
|
Refs #23919 -- Removed support for broken Model.__str__() in Model.__repr__().
Returning invalid bytestrings in __str__() is unlikely in Python 3.
|
2017-06-11 15:52:19 -04:00 |
Collin Anderson
|
1a49b89470
|
Fixed #27953 -- Added instance's pk to Model.__str__().
|
2017-06-09 13:42:53 -04:00 |
Mads Jensen
|
c7f6ffbdcf
|
Fixed #28103 -- Added quarter extract, truncation, and lookup.
Thanks Mariusz Felisiak, Tim Graham, and Adam Johnson for review.
|
2017-06-08 15:15:29 -04:00 |
Claude Paroz
|
af69f14e7b
|
Removed unused sql.Query.query_terms
Unused since 5008a4db44 .
|
2017-06-08 13:11:51 -04:00 |
Jon Dufresne
|
0c3c37a376
|
Fixed #28282 -- Fixed class-based indexes name for models that only inherit Model.
|
2017-06-08 09:36:12 -04:00 |
Tim Graham
|
5a52d932ef
|
Replaced Model._get_pk_val() with pk property.
Model.pk was added after _get_pk_val() and many places weren't simplified.
|
2017-06-05 15:20:34 -04:00 |
Adam Johnson
|
ed244199c7
|
Fixed #28269 -- Fixed Model.__init__() crash on models with a field that has an instance only descriptor.
Regression in d2a26c1a90 .
|
2017-06-05 08:40:43 -04:00 |