Skip to content

expanded CompositeField docs - #4

Open
highpost wants to merge 29 commits into
koniiiik:soc2013/composite-fieldsfrom
highpost:patch-1
Open

expanded CompositeField docs#4
highpost wants to merge 29 commits into
koniiiik:soc2013/composite-fieldsfrom
highpost:patch-1

Conversation

@highpost

@highpost highpost commented Dec 3, 2013

Copy link
Copy Markdown

No description provided.

koniiiik and others added 29 commits October 8, 2013 17:14
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants