Source

djangotoolbox / djangotoolbox / fields.py

Author Commit Message Labels Comments Date
Default avatar Jonas Haag
Improved an error message
Default avatar Jonas Haag
Fixed loading of EmbeddedModelFields that use a custom db_column.
Default avatar Jonas Haag
Minor comment formatting improvement
Default avatar Jonas Haag
Fix #9: Allow field classes to be passed to fields (not only field instances)
Default avatar Jonas Haag
Fix #39: Don't call convert_value_from_db for fields' default values
Waldemar Kornewald avatarWaldemar Kornewald
Waldemar Kornewald avatarWaldemar Kornewald
set a db_type for ListField, SetField, and DictField, so subclasses don't have to define a new one
Default avatar Jonas Haag
Follow-up fix for r191, which actually didn't fix the problem.
Default avatar Jonas Haag
Fixed #7: Exclude unset primary keys from embedded model instances.
Waldemar Kornewald avatarWaldemar 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 avatarWaldemar 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 avatarWaldemar Kornewald
Renames a parameter to match the docstring. Contributed by Jonas Haag.
Waldemar Kornewald avatarWaldemar Kornewald
added note, so we don't keep workarounds forever
Default avatar Flavio Percoco Premoli
makes sure all kwargs are strs
Waldemar Kornewald avatarWaldemar Kornewald
fixed get_db_prep_lookup for ListField (required for startswith/contains/endswith)
Waldemar Kornewald avatarWaldemar Kornewald
actually, that should be field.column
Waldemar Kornewald avatarWaldemar Kornewald
fixed ForeignKey support in embedded models. thanks for the patch Jonas Haag!
Waldemar Kornewald avatarWaldemar 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 avatarWaldemar Kornewald
added support for lazy lookups of models to EmbeddedModelField. Thanks to Jonas Haag for the patch
Waldemar Kornewald avatarWaldemar Kornewald
added support for EmbeddedModelField. Thanks to Jonas Haag for the patch! only slightly modified his patch
Waldemar Kornewald avatarWaldemar Kornewald
fixed __all__ which referred to GenericField which was renamed to RawField. thanks to Flavio Percoco Premoli for the patch
Waldemar Kornewald avatarWaldemar Kornewald
fixed support for iterable fields with item field types that use SubfieldBase
Waldemar Kornewald avatarWaldemar Kornewald
fixed support for null=True in fields. thanks to Jonas Haag for the patch
Waldemar Kornewald avatarWaldemar Kornewald
simplified fields since we now always have an item_field
Waldemar Kornewald avatarWaldemar 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 avatarWaldemar 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 avatarWaldemar Kornewald
added better handling for ListField's default value and minor cleanups
Waldemar Kornewald avatarWaldemar Kornewald
moved djangotoolbox into subfolder and added a setup.py script
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.