Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Refs #16055 -- Deprecated ↵ | David Wobrock | 2023-04-18 | 1 | -0/+47 |
| | | | | get_joining_columns()/get_reverse_joining_columns() methods. | ||||
* | Fixed #16055 -- Fixed crash when filtering against char/text GenericRelation ↵ | David Wobrock | 2023-04-18 | 1 | -1/+1 |
| | | | | relation on PostgreSQL. | ||||
* | Refs #33476 -- Applied Black's 2023 stable style. | David Smith | 2023-02-01 | 1 | -2/+0 |
| | | | | | | | | Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0 | ||||
* | Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to ↵ | Gregor Gärtner | 2022-10-08 | 2 | -18/+18 |
| | | | | | | assertQuerySetEqual(). Co-Authored-By: Michael Howitz <mh@gocept.com> | ||||
* | Removed redundant QuerySet.all() calls in docs and tests. | Nick Pope | 2022-02-22 | 1 | -1/+1 |
| | | | | Most QuerySet methods are mapped onto the Manager and, in general, it isn't necessary to call .all() on the manager. | ||||
* | Refs #33476 -- Refactored code to strictly match 88 characters line length. | Mariusz Felisiak | 2022-02-07 | 2 | -7/+12 |
| | |||||
* | Refs #33476 -- Reformatted code with Black. | django-bot | 2022-02-07 | 9 | -300/+425 |
| | |||||
* | Fixed #32996 -- Cached PathInfos on relations. | Keryn Knight | 2021-11-03 | 1 | -0/+103 |
| | | | | | | PathInfo values are ostensibly static over the lifetime of the object for which they're requested, so the data can be memoized, quickly amortising the cost over the process' duration. | ||||
* | Fixed #32951 -- Removed Query.where_class & co. | Nick Pope | 2021-07-22 | 2 | -3/+3 |
| | | | | Unused since 3caf957ed5eaa831a485abcb89f27266dbf3e82b. | ||||
* | Fixed #32366 -- Updated datetime module usage to recommended approach. | Nick Pope | 2021-05-12 | 1 | -1/+1 |
| | | | | | | | - Replaced datetime.utcnow() with datetime.now(). - Replaced datetime.utcfromtimestamp() with datetime.fromtimestamp(). - Replaced datetime.utctimetuple() with datetime.timetuple(). - Replaced calendar.timegm() and datetime.utctimetuple() with datetime.timestamp(). | ||||
* | Fixed #31235 -- Made assertQuerysetEqual() compare querysets directly. | Hasan Ramezani | 2020-11-06 | 1 | -6/+6 |
| | | | | | | | | This also replaces assertQuerysetEqual() to assertSequenceEqual()/assertCountEqual() where appropriate. Co-authored-by: Peter Inglesby <peter.inglesby@gmail.com> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | ||||
* | Fixed typos in docs and a test comment. | Yoo In Keun | 2020-02-19 | 1 | -1/+1 |
| | |||||
* | Simplified imports from django.db and django.contrib.gis.db. | Nick Pope | 2020-02-04 | 3 | -10/+6 |
| | |||||
* | Adjusted code style of a few test data setup methods. | Simon Charette | 2018-11-27 | 1 | -4/+1 |
| | | | | Thanks Mariusz for suggesting it. | ||||
* | Switched setUp() to setUpTestData() where possible in Django's tests. | Simon Charette | 2018-11-27 | 2 | -18/+19 |
| | |||||
* | Fixed #29908 -- Fixed setting of foreign key after related set access if ↵ | Simon Charette | 2018-11-08 | 1 | -8/+9 |
| | | | | | | | | | | ForeignKey uses to_field. Adjusted known related objects handling of target fields which relies on from and to_fields and has the side effect of fixing a bug bug causing N+1 queries when using reverse foreign objects. Thanks Carsten Fuchs for the report. | ||||
* | Removed invalid Meta.ordering in a test model. | Tim Graham | 2018-08-22 | 1 | -1/+0 |
| | | | | It never worked and was never used. | ||||
* | Fixed hanging indentation in various code. | Mariusz Felisiak | 2018-03-16 | 1 | -1/+2 |
| | |||||
* | Fixed #27332 -- Added FilteredRelation API for conditional join (ON clause) ↵ | Nicolas Delaby | 2017-09-22 | 1 | -5/+21 |
| | | | | | support. Thanks Anssi Kääriäinen for contributing to the patch. | ||||
* | Refs #16043 -- Refactored internal fields value cache. | Paulo | 2017-08-10 | 1 | -2/+2 |
| | | | | | | | * Removed all hardcoded logic for _{fieldname}_cache. * Added an internal API for interacting with the field values cache. Thanks carljm and MarkusH for support. | ||||
* | Used assertRaisesMessage() to test Django's error messages. | Mads Jensen | 2017-07-29 | 1 | -2/+12 |
| | |||||
* | Refs #23968 -- Removed unnecessary lists, generators, and tuple calls. | Jon Dufresne | 2017-06-01 | 1 | -1/+1 |
| | |||||
* | Sorted imports per isort 4.2.9. | Tim Graham | 2017-06-01 | 1 | -1/+0 |
| | |||||
* | Decreased max_length for char fields unless absolutely needed. (#8485) | Florian Apolloner | 2017-05-10 | 1 | -1/+1 |
| | |||||
* | Replaced type-specific assertions with assertEqual(). | Tim Graham | 2017-03-17 | 1 | -3/+3 |
| | | | Python docs say, "it's usually not necessary to invoke these methods directly." | ||||
* | Refs #23919 -- Replaced super(ClassName, self) with super(). | chillaranand | 2017-01-25 | 2 | -3/+3 |
| | |||||
* | Refs #23919 -- Stopped inheriting from object to define new style classes. | Simon Charette | 2017-01-19 | 1 | -1/+1 |
| | |||||
* | Refs #23919 -- Removed python_2_unicode_compatible decorator usage | Claude Paroz | 2017-01-18 | 3 | -9/+0 |
| | |||||
* | Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings. | za | 2016-11-10 | 2 | -2/+1 |
| | |||||
* | Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with ↵ | Mads Jensen | 2016-09-13 | 1 | -12/+18 |
| | | | | assertSequenceEqual(). | ||||
* | Refs #25415 -- Fixed invalid models in the test suite. | Adam Chainz | 2016-09-09 | 1 | -1/+1 |
| | |||||
* | Fixed #26515 -- Fixed Query.trim_joins() for nested ForeignObjects. | darius BERNARD | 2016-05-19 | 3 | -2/+70 |
| | |||||
* | Refs #16508 -- Renamed the current "virtual" fields to "private". | Michal Petrucha | 2016-04-13 | 1 | -2/+2 |
| | | | | | | | The only reason why GenericForeignKey and GenericRelation are stored separately inside _meta is that they need to be cloned for every model subclass, but that's not true for any other virtual field. Actually, it's only true for GenericRelation. | ||||
* | Fixed #26153 -- Reallowed Q-objects in ↵ | Anssi Kääriäinen | 2016-02-11 | 2 | -0/+26 |
| | | | | ForeignObject.get_extra_descriptor_filter(). | ||||
* | Refs #26022 -- Used context manager version of assertRaises in tests. | Hasan | 2016-01-29 | 1 | -1/+2 |
| | |||||
* | Fixed #25746 -- Isolated inlined test models registration. | Simon Charette | 2016-01-06 | 1 | -13/+3 |
| | | | | Thanks to Tim for the review. | ||||
* | Fixed #25972 -- Restored support for the isnull lookup with ForeignObject. | Tomo Otsuka | 2015-12-24 | 2 | -6/+19 |
| | |||||
* | Refs #25745 -- Isolated a foreign_object test. | Simon Charette | 2015-11-14 | 1 | -0/+13 |
| | |||||
* | Fixed #25668 -- Misc spelling errors | Ville Skyttä | 2015-11-03 | 1 | -1/+1 |
| | |||||
* | Refs #25535 -- Minor edits to ForeignObject check changes. | Tim Graham | 2015-10-14 | 1 | -17/+8 |
| | |||||
* | Fixed #25535 -- Made ForeignObject checks less strict. | Antoine Catton | 2015-10-12 | 1 | -0/+60 |
| | | | | | Check that the foreign object `from_fields` are a subset of any unique constraints on the foreign model. | ||||
* | Renamed descriptor classes for related objects. | Aymeric Augustin | 2015-09-21 | 2 | -8/+7 |
| | | | | | | | | | | | | The old names were downright confusing. Some seemed to mean the opposite of what the class actually did. The new names follow a consistent nomenclature: (Forward|Reverse)(ManyToOne|OneToOne|ManyToMany)Descriptor. I mentioned combinations that do not exist in the docstring in order to help people who would search for them in the code base. | ||||
* | Fixed #25064 -- Allowed empty join columns. | Alex Hill | 2015-08-15 | 3 | -1/+149 |
| | |||||
* | Moved foreign_object models.py into a module. | Tim Graham | 2015-08-14 | 5 | -113/+137 |
| | |||||
* | Added test for ForeignObject.get_extra_descriptor_filter() | Alex Hill | 2015-08-03 | 2 | -1/+4 |
| | |||||
* | Fixed #21127 -- Started deprecation toward requiring on_delete for ↵ | Flavio Curella | 2015-07-27 | 1 | -11/+26 |
| | | | | ForeignKey/OneToOneField | ||||
* | Renamed Field.rel attribute to remote_field | Anssi Kääriäinen | 2015-03-25 | 1 | -1/+1 |
| | | | | | | | | Field.rel is now deprecated. Rel objects have now also remote_field attribute. This means that self == self.remote_field.remote_field. In addition, made the Rel objects a bit more like Field objects. Still, marked ManyToManyFields as null=True. | ||||
* | Sorted imports with isort; refs #23860. | Tim Graham | 2015-02-06 | 2 | -6/+10 |
| | |||||
* | Ensured foreign_object tests reset language properly. | Preston Timmons | 2014-12-02 | 1 | -7/+8 |
| | |||||
* | Renamed qn to compiler | Josh Smeaton | 2014-11-16 | 1 | -1/+2 |
| |