Skip to content
Commits on Apr 19, 2010
  1. @flosch
Commits on Apr 17, 2010
  1. @hmarr
  2. @hmarr
  3. @flosch

    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. @flosch

    Merge remote branch 'hmarr/master'

    Conflicts:
    	mongoengine/base.py
    flosch committed Apr 17, 2010
  2. @flosch
  3. @flosch

    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 17, 2010
  4. @flosch

    bugfix

    flosch committed Apr 16, 2010
  5. @flosch
  6. @flosch

    Make validation-lists possible. Example:

        class Doc(Document):
            country = StringField(validation=['DE', 'AT', 'CH'])
    flosch committed Apr 16, 2010
  7. @flosch

    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. @flosch

    Merge remote branch 'hmarr/master'

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

    Don Spaulding committed Apr 14, 2010
Commits on Apr 12, 2010
  1. @hmarr
  2. @joshourisman
  3. @cyberdelia @hmarr

    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
  4. @hmarr

    Fixed DecimalField bug

    hmarr committed Apr 12, 2010
Commits on Mar 29, 2010
  1. @flosch
  2. @flosch

    added emailfield

    flosch committed Mar 29, 2010
  3. @iapain

    keeping import policy in mind

    iapain committed Mar 29, 2010
  4. @iapain

    updated documentation

    iapain committed Mar 29, 2010
Commits on Mar 28, 2010
  1. @iapain
Commits on Mar 17, 2010
  1. @hmarr

    Bump to v0.3

    hmarr committed Mar 17, 2010
  2. @hmarr
  3. @mattdennewitz
  4. @hmarr
  5. @hmarr
  6. @hmarr
  7. @hmarr

    Merge branch 'mapreduce' of git://github.com/blackbrrr/mongoengine

    Conflicts:
    	mongoengine/queryset.py
    hmarr committed Mar 17, 2010
  8. @hmarr
  9. @mattdennewitz
  10. @mattdennewitz
  11. @mattdennewitz

    bumped version

    mattdennewitz committed Mar 17, 2010
Something went wrong with that request. Please try again.