Permalink
Commits on Apr 19, 2010
Commits on Apr 17, 2010
  1. Removed create_default since it can be achieved with the `default` ar…

    …gument (like default=MyEmbeddedDocument since default takes callables too).
    flosch committed Apr 17, 2010
Commits on Apr 16, 2010
  1. Merge remote branch 'hmarr/master'

    Conflicts:
    	mongoengine/base.py
    flosch committed Apr 16, 2010
  2. Introduced new create_default field argument. If set to true, mongoen…

    …gine will automagically create an instance of the desired document class (useful if using EmbeddedDocumentField for example):
    
        class SubDoc(EmbeddedDocument):
            url = URLField()
    
        class MyDoc(Document):
            subdoc = EmbeddedDocumentField(SubDoc, create_default=True)
    
    With create_default MyDoc().subdoc is automatically instantiated. Hint: default=SubDoc() WON'T work (that's why I've introduced create_default)
    flosch committed Apr 16, 2010
  3. bugfix

    flosch committed Apr 16, 2010
  4. Make validation-lists possible. Example:

        class Doc(Document):
            country = StringField(validation=['DE', 'AT', 'CH'])
    flosch committed Apr 16, 2010
  5. Fixes tiny documentation error. Adds possibility to add custom valida…

    …tion methods to fields, e. g.:
    
        class Customer(Document):
            country = StringField(validation=lambda value: value in ['DE', 'AT', 'CH'])
    
    Replaced some str() with unicode() for i18n reasons.
    flosch committed Apr 16, 2010
Commits on Apr 15, 2010
  1. Add choices keyword argument to BaseField.__init__()

    Don Spaulding committed Apr 15, 2010
  2. Add description of each of the keyword arguments to BaseField.__init_…

    …_(), adds description for choices too.
    Don Spaulding committed Apr 15, 2010
  3. Merge remote branch 'hmarr/master'

    Conflicts:
    	mongoengine/fields.py
    flosch committed Apr 15, 2010
  4. Fix doc typos

    Don Spaulding committed Apr 15, 2010
Commits on Apr 12, 2010
  1. make get_or_create returns a tuple with the retrieved or created obje…

    …ct and a boolean specifying whether a new object was created
    cyberdelia committed with hmarr Apr 11, 2010
  2. Fixed DecimalField bug

    hmarr committed Apr 12, 2010
Commits on Mar 29, 2010
  1. added emailfield

    flosch committed Mar 29, 2010
  2. keeping import policy in mind

    iapain committed Mar 29, 2010
  3. updated documentation

    iapain committed Mar 29, 2010
Commits on Mar 28, 2010
Commits on Mar 17, 2010
  1. Bump to v0.3

    hmarr committed Mar 17, 2010
  2. Merge branch 'mapreduce' of git://github.com/blackbrrr/mongoengine

    Conflicts:
    	mongoengine/queryset.py
    hmarr committed Mar 17, 2010
  3. bumped version

    mattdennewitz committed Mar 17, 2010