Upgrade changelog, docs and django/auth.py
This commit is contained in:
parent
10731b0fd8
commit
df4dc3492c
1
AUTHORS
1
AUTHORS
@ -157,4 +157,3 @@ that much better:
|
|||||||
* Kenneth Falck
|
* Kenneth Falck
|
||||||
* Lukasz Balcerzak
|
* Lukasz Balcerzak
|
||||||
* Nicolas Cortot
|
* Nicolas Cortot
|
||||||
|
|
||||||
|
@ -4,6 +4,7 @@ Changelog
|
|||||||
|
|
||||||
Changes in 0.8.X
|
Changes in 0.8.X
|
||||||
================
|
================
|
||||||
|
- Added Custom User Model for Django 1.5 (#285)
|
||||||
- Cascading saves now default to off (#291)
|
- Cascading saves now default to off (#291)
|
||||||
- ReferenceField now store ObjectId's by default rather than DBRef (#290)
|
- ReferenceField now store ObjectId's by default rather than DBRef (#290)
|
||||||
- Added ImageField support for inline replacements (#86)
|
- Added ImageField support for inline replacements (#86)
|
||||||
|
@ -12,8 +12,8 @@ FutureWarnings to help get you ready for the change, but that hasn't been
|
|||||||
possible for the whole of the release.
|
possible for the whole of the release.
|
||||||
|
|
||||||
.. warning:: Breaking changes - test upgrading on a test system before putting
|
.. warning:: Breaking changes - test upgrading on a test system before putting
|
||||||
live. There maybe multiple manual steps in migrating and these are best honed
|
live. There maybe multiple manual steps in migrating and these are best honed
|
||||||
on a staging / test system.
|
on a staging / test system.
|
||||||
|
|
||||||
Data Model
|
Data Model
|
||||||
==========
|
==========
|
||||||
@ -90,7 +90,7 @@ ReferenceField
|
|||||||
--------------
|
--------------
|
||||||
|
|
||||||
ReferenceFields now store ObjectId's by default - this is more efficient than
|
ReferenceFields now store ObjectId's by default - this is more efficient than
|
||||||
DBRefs as we already know what Document types they reference.
|
DBRefs as we already know what Document types they reference::
|
||||||
|
|
||||||
# Old code
|
# Old code
|
||||||
class Animal(Document):
|
class Animal(Document):
|
||||||
|
@ -108,7 +108,7 @@ class Permission(Document):
|
|||||||
created for each Django model.
|
created for each Django model.
|
||||||
"""
|
"""
|
||||||
name = StringField(max_length=50, verbose_name=_('username'))
|
name = StringField(max_length=50, verbose_name=_('username'))
|
||||||
content_type = ReferenceField(ContentType, dbref=True)
|
content_type = ReferenceField(ContentType)
|
||||||
codename = StringField(max_length=100, verbose_name=_('codename'))
|
codename = StringField(max_length=100, verbose_name=_('codename'))
|
||||||
# FIXME: don't access field of the other class
|
# FIXME: don't access field of the other class
|
||||||
# unique_with=['content_type__app_label', 'content_type__model'])
|
# unique_with=['content_type__app_label', 'content_type__model'])
|
||||||
@ -149,8 +149,7 @@ class Group(Document):
|
|||||||
e-mail messages.
|
e-mail messages.
|
||||||
"""
|
"""
|
||||||
name = StringField(max_length=80, unique=True, verbose_name=_('name'))
|
name = StringField(max_length=80, unique=True, verbose_name=_('name'))
|
||||||
# permissions = models.ManyToManyField(Permission, verbose_name=_('permissions'), blank=True)
|
permissions = ListField(ReferenceField(Permission, verbose_name=_('permissions'), required=False))
|
||||||
permissions = ListField(ReferenceField(Permission, verbose_name=_('permissions'), required=False, dbref=True))
|
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
verbose_name = _('group')
|
verbose_name = _('group')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user