diff --git a/AUTHORS b/AUTHORS index a5705eef..112b7f36 100644 --- a/AUTHORS +++ b/AUTHORS @@ -98,3 +98,4 @@ that much better: * Chris Williams * Robert Kajic * Jacob Peddicord + * Nils Hasenbanck \ No newline at end of file diff --git a/docs/changelog.rst b/docs/changelog.rst index a458be8b..0c962cd1 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -2,8 +2,9 @@ Changelog ========= -Changes in 0.6.X +Changes in 0.6.3 ================ +- Updated sessions for Django 1.4 - Bug fix for updates where listfields contain embedded documents - Bug fix for collection naming and mixins diff --git a/docs/django.rst b/docs/django.rst index 4478b94f..144baab5 100644 --- a/docs/django.rst +++ b/docs/django.rst @@ -2,19 +2,21 @@ Using MongoEngine with Django ============================= +.. note :: Updated to support Django 1.4 + Connecting ========== In your **settings.py** file, ignore the standard database settings (unless you -also plan to use the ORM in your project), and instead call +also plan to use the ORM in your project), and instead call :func:`~mongoengine.connect` somewhere in the settings module. Authentication ============== MongoEngine includes a Django authentication backend, which uses MongoDB. The -:class:`~mongoengine.django.auth.User` model is a MongoEngine -:class:`~mongoengine.Document`, but implements most of the methods and +:class:`~mongoengine.django.auth.User` model is a MongoEngine +:class:`~mongoengine.Document`, but implements most of the methods and attributes that the standard Django :class:`User` model does - so the two are -moderately compatible. Using this backend will allow you to store users in +moderately compatible. Using this backend will allow you to store users in MongoDB but still use many of the Django authentication infrastucture (such as the :func:`login_required` decorator and the :func:`authenticate` function). To enable the MongoEngine auth backend, add the following to you **settings.py** @@ -24,7 +26,7 @@ file:: 'mongoengine.django.auth.MongoEngineBackend', ) -The :mod:`~mongoengine.django.auth` module also contains a +The :mod:`~mongoengine.django.auth` module also contains a :func:`~mongoengine.django.auth.get_user` helper function, that takes a user's :attr:`id` and returns a :class:`~mongoengine.django.auth.User` object. @@ -49,9 +51,9 @@ Storage ======= With MongoEngine's support for GridFS via the :class:`~mongoengine.FileField`, it is useful to have a Django file storage backend that wraps this. The new -storage module is called :class:`~mongoengine.django.storage.GridFSStorage`. +storage module is called :class:`~mongoengine.django.storage.GridFSStorage`. Using it is very similar to using the default FileSystemStorage.:: - + from mongoengine.django.storage import GridFSStorage fs = GridFSStorage() diff --git a/mongoengine/__init__.py b/mongoengine/__init__.py index 0cc74a42..9d0a7571 100644 --- a/mongoengine/__init__.py +++ b/mongoengine/__init__.py @@ -12,7 +12,7 @@ from signals import * __all__ = (document.__all__ + fields.__all__ + connection.__all__ + queryset.__all__ + signals.__all__) -VERSION = (0, 6, 2) +VERSION = (0, 6, 3) def get_version(): diff --git a/python-mongoengine.spec b/python-mongoengine.spec index 106243a4..164f5af5 100644 --- a/python-mongoengine.spec +++ b/python-mongoengine.spec @@ -5,7 +5,7 @@ %define srcname mongoengine Name: python-%{srcname} -Version: 0.6.2 +Version: 0.6.3 Release: 1%{?dist} Summary: A Python Document-Object Mapper for working with MongoDB