Giannis Terzopoulos
|
73df8b54a2
|
Fixed #35044 -- Avoided clearing reverse relations and private fields when accessing deferred fields.
Regression in a7b5ad8b19 for reverse
relations and possibly in 123b1d3fcf for
private fields.
|
2024-03-08 11:09:54 +01:00 |
|
Simon Charette
|
87c63bd8df
|
Fixed #34458 -- Fixed QuerySet.defer() crash on attribute names.
Thanks Andrew Cordery for the report.
Regression in b3db6c8dcb .
|
2023-04-05 05:38:10 +02:00 |
|
Gregor Gärtner
|
f0c06f8ab7
|
Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual().
Co-Authored-By: Michael Howitz <mh@gocept.com>
|
2022-10-08 08:07:38 +02:00 |
|
Simon Charette
|
b3db6c8dcb
|
Fixed #21204 -- Tracked field deferrals by field instead of models.
This ensures field deferral works properly when a model is involved
more than once in the same query with a distinct deferral mask.
|
2022-08-30 08:43:53 +02:00 |
|
Simon Charette
|
5d12650ed9
|
Refs #21204 -- Added more QuerySet.defer()/only() tests for invalid fields.
|
2022-08-30 07:09:15 +02:00 |
|
Nick Pope
|
847f46e9bf
|
Removed redundant QuerySet.all() calls in docs and tests.
Most QuerySet methods are mapped onto the Manager and, in general,
it isn't necessary to call .all() on the manager.
|
2022-02-22 10:29:38 +01:00 |
|
django-bot
|
9c19aff7c7
|
Refs #33476 -- Reformatted code with Black.
|
2022-02-07 20:37:05 +01:00 |
|
David Wobrock
|
fd999318ad
|
Fixed #32704 -- Fixed list of deferred fields when chaining QuerySet.defer() after only().
|
2021-07-20 12:15:29 +02:00 |
|
David Wobrock
|
96706d76cd
|
Added more tests for chaining QuerySet.defer() after only().
|
2021-07-20 12:14:28 +02:00 |
|
Carlton Gibson
|
225d96533a
|
Fixed #30427, Fixed #16176 -- Corrected setting descriptor in Field.contribute_to_class().
Co-authored-by: Jarek Glowacki <jarekwg@gmail.com>
|
2021-06-15 12:01:28 +02:00 |
|
Simon Charette
|
11e327a3ff
|
Fixed #30988 -- Deprecated the InvalidQuery exception.
It was barely documented without pointers at its defining location and
was abused to prevent misuse of the QuerySet field deferring feature.
|
2019-11-18 14:06:51 +01:00 |
|
Min ho Kim
|
9f11939dd1
|
Fixed typos in comments and a test name.
|
2019-07-19 18:24:06 +02:00 |
|
Tim Gates
|
698df6a009
|
Fixed typos in test comments.
|
2019-06-25 11:12:45 +02:00 |
|
Mariusz Felisiak
|
362813d628
|
Fixed hanging indentation in various code.
|
2018-03-16 10:54:34 +01:00 |
|
Jeremy Kerr
|
84b7cb7df0
|
Fixed #28549 -- Fixed QuerySet.defer() with super and subclass fields.
Previously, deferring fields in different classes didn't omit the
superclass' deferred field.
Thanks Simon Charette for the suggested fix.
|
2017-08-31 09:35:05 -04:00 |
|
chillaranand
|
d6eaf7c018
|
Refs #23919 -- Replaced super(ClassName, self) with super().
|
2017-01-25 12:23:46 -05:00 |
|
Simon Charette
|
cecc079168
|
Refs #23919 -- Stopped inheriting from object to define new style classes.
|
2017-01-19 08:39:46 +01:00 |
|
Claude Paroz
|
f3c43ad1fd
|
Refs #23919 -- Removed python_2_unicode_compatible decorator usage
|
2017-01-18 13:44:34 +01:00 |
|
Claude Paroz
|
d7b9aaa366
|
Refs #23919 -- Removed encoding preambles and future imports
|
2017-01-18 09:55:19 +01:00 |
|
za
|
321e94fa41
|
Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.
|
2016-11-10 21:30:21 -05:00 |
|
Anssi Kääriäinen
|
7f51876f99
|
Fixed #26207 -- Replaced dynamic classes with non-data descriptors for deferred instance loading.
|
2016-04-29 13:06:32 -04:00 |
|
Tim Graham
|
0456a8b9e6
|
Fixed #26486 -- Fixed a select_related() + defer() MTI edge case.
|
2016-04-13 10:32:17 -04:00 |
|
Tim Graham
|
353d436e7c
|
Used assertRaisesMessage in a couple defer tests.
|
2016-04-11 10:06:48 -04:00 |
|
Flavio Curella
|
c2e70f0265
|
Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField
|
2015-07-27 18:28:13 -04:00 |
|
Tim Graham
|
0ed7d15563
|
Sorted imports with isort; refs #23860.
|
2015-02-06 08:16:28 -05:00 |
|
Josh Schneier
|
7d363ed432
|
Fixed typos of "select_related" in docs and tests.
|
2015-02-04 07:31:43 -05:00 |
|
Will Earp
|
8952757698
|
Refs #18586 -- Split up tests.defer.DeferTests.test_defer
|
2014-12-31 11:56:06 -05:00 |
|
Anssi Kääriäinen
|
c7175fcdfe
|
Fixed #901 -- Added Model.refresh_from_db() method
Thanks to github aliases dbrgn, carljm, slurms, dfunckt, and timgraham
for reviews.
|
2014-11-28 06:54:00 -05:00 |
|
Rodolfo Carvalho
|
0d91225892
|
Fixed many typos in comments and docstrings.
Thanks Piotr Kasprzyk for help with the patch.
|
2014-03-03 07:38:09 -05:00 |
|
Christopher Medrela
|
7477a4ffde
|
Fixed E125 pep8 warnings
|
2013-11-28 08:50:11 -05:00 |
|
Jason Myers
|
3f115776e1
|
PEP8
Signed-off-by: Jason Myers <jason@jasonamyers.com>
|
2013-11-02 23:50:38 -05:00 |
|
Tim Graham
|
ae48d77ef8
|
Fixed E225 pep8 warnings.
|
2013-10-23 06:09:29 -04:00 |
|
Anssi Kääriäinen
|
4668c142dc
|
Made Model.__eq__ consider proxy models equivalent
Fixed #11892, fixed #16458, fixed #14492.
|
2013-08-19 09:51:28 +03:00 |
|
Claude Paroz
|
5c1143910e
|
Removed most of absolute_import imports
Should be unneeded with Python 2.7 and up.
Added some unicode_literals along the way.
|
2013-07-29 20:28:13 +02:00 |
|
Florian Apolloner
|
89f40e3624
|
Merged regressiontests and modeltests into the test root.
|
2013-02-26 14:36:57 +01:00 |
|