This file contains 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
""" | |
Implements manager with "UPDATE .. RETURNING" clause support. Columns following | |
the "RETURNING" clause may be provided using `values_list()` method. If not | |
specified, the update statement will yield full records. | |
Queries executed with use of `UpdateReturningManager` or | |
`UpdateReturningDefaultManager` return a generator allowing easy iterating over | |
the returned entries. | |
Based on https://github.com/kanu/django-update-returning, with modifications to |