Merge branch 'master' of git://github.com/hmarr/mongoengine into deferred_fields

This commit is contained in:
blackbrrr
2010-01-19 12:27:14 -06:00
14 changed files with 626 additions and 558 deletions

View File

@@ -204,6 +204,9 @@ class ListField(BaseField):
of the field to be used as a list in the database.
"""
# ListFields cannot be indexed with _types - MongoDB doesn't support this
_index_with_types = False
def __init__(self, field, **kwargs):
if not isinstance(field, BaseField):
raise ValidationError('Argument to ListField constructor must be '