Source

djangotoolbox / djangotoolbox / fields.py

Author Commit Message Labels Comments Date
Jonas Haag
Follow-up fix for r191, which actually didn't fix the problem.
Jonas Haag
Fixed #7: Exclude unset primary keys from embedded model instances.
Waldemar Kornewald
Adds test cases that assert that ordering happens only once for each save (and also happens *before* any data type conversions). Also fixes the code accordingly. Contributed by Jonas Haag.
Waldemar Kornewald
Adds a test case for nice TypeErrors in EmbeddedModelField's seriaization method, plus one fix to make the tests pass (nice error messages should also be used in the "untyped" case) Contributed by Jonas Haag.
Waldemar Kornewald
Renames a parameter to match the docstring. Contributed by Jonas Haag.
Waldemar Kornewald
added note, so we don't keep workarounds forever
Flavio Percoco Premoli
makes sure all kwargs are strs
Waldemar Kornewald
fixed get_db_prep_lookup for ListField (required for startswith/contains/endswith)
Waldemar Kornewald
actually, that should be field.column
Waldemar Kornewald
fixed ForeignKey support in embedded models. thanks for the patch Jonas Haag!
Waldemar Kornewald
added quick hack by Jonas Haag to make MongoDB backend's A() queries work. TODO: should be removed as soon as we have a cleaner solution (Jonas is working on it)
Waldemar Kornewald
added support for lazy lookups of models to EmbeddedModelField. Thanks to Jonas Haag for the patch
Waldemar Kornewald
added support for EmbeddedModelField. Thanks to Jonas Haag for the patch! only slightly modified his patch
Waldemar Kornewald
fixed __all__ which referred to GenericField which was renamed to RawField. thanks to Flavio Percoco Premoli for the patch
Waldemar Kornewald
fixed support for iterable fields with item field types that use SubfieldBase
Waldemar Kornewald
fixed support for null=True in fields. thanks to Jonas Haag for the patch
Waldemar Kornewald
simplified fields since we now always have an item_field
Waldemar Kornewald
renamed GenericField to RawField to make it clearer what it does (i.e., you can pass any low-level datatype in there and it'll be stored without any field-specific conversion, so not all field-specific types might be supported: e.g. GAE doesn't support date and time objects, only datetime)
Waldemar Kornewald
added SetField and DictField and extended ListField with ordering support (all contributed by Jonas Haag). only the (very simple) unit tests are by me (added check if dicts are supported by the DB, for instance)
Waldemar Kornewald
added better handling for ListField's default value and minor cleanups
Waldemar Kornewald
moved djangotoolbox into subfolder and added a setup.py script