expanded CompositeField docs - #4
Open
highpost wants to merge 29 commits into
Open
Conversation
These functions have also been generalized somewhat for use by composite values.
Introduces InConstraint, a new DB backend operation for more efficient multi-column IN lookups. Now, instead of creating a huge DNF expression, an IN expression is created on backends with support for tuple literals and an EXISTS subquery is used otherwise.
This basically consisted of adding an explicit force_text everywhere the value of the primary key is quoted to make sure it really is quoted properly.
It is now possible to use field names as well as field instances. This is required in order to support deconstruct properly and also makes it easier to implement clone_for_foreignkey.
This appears to greatly confuse SQLite's introspection code which now reports incorrect relationships. Other backends are not affected.
- Made RelatedField VirtualField subclass - Allowed update() of composite fields and ForeignKeys, this was done by adding resolve_concrete_values() method to Field. - By the above, fixed delete SET=None issue - Some minor code cleanup (mainly cleaning what VirtualField does, and removal of duplicate methods from RelatedField - SQLite3 foreign key introspection fix - Made subqueries multicolumn friendly by using Query.add_filter() instead of manually building the filter conditions
Fixed gis compiler.get_default_columns() Fixed some issues in composite fields Fixed m2m add, remove, set and clear operations Added tests for update(combofk=val) More m2m composite support Composite M2M value stays selected in forms Replaced resolve_basic_fields() with concrete_fields cached_property Removed get_enclosed_field() Query.values_list() yields tuples for composite fields Added tests for composite fk attname Cleaned up related field tuple/nontuple value handling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.