forked from django-nonrel/djangotoolbox
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change definitions of get_db_prep_value into get_db_prep_save -- the …
…former one is only used in default implementations of _save/_lookup methods (in both 1.3 and 1.4), so its more straightforward to just override those. Simplify AbstractIterableField.pre_save by pulling some parts out of it (with a side effect of using a new fake model instance for each item). Import subclassing.Creator instead of copying the code. Drop an unnecessary type check (should remedy issue django-nonrel#4).
- Loading branch information
Showing
1 changed file
with
34 additions
and
47 deletions.
There are no files selected for viewing
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