Skip to content

Commit 855efe7

Browse files
committed
Added user_permissions to Django User object (#491, #492)
1 parent d902a74 commit 855efe7

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,3 +183,4 @@ that much better:
183183
* Joe Friedl (https://github.com/grampajoe)
184184
* Daniel Ward (https://github.com/danielward)
185185
* Aniket Deshpande (https://github.com/anicake)
186+
* rfkrocktk (https://github.com/rfkrocktk)

docs/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Changelog
44

55
Changes in 0.8.5
66
================
7+
- Added user_permissions to Django User object (#491, #492)
78
- Fix setting Geo Location fields (#488)
89
- Fix handling invalid dict field value (#485)
910
- Added app_label to MongoUser (#484)

mongoengine/django/auth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class Permission(Document):
117117

118118
class Meta:
119119
verbose_name = _('permission')
120-
verbose_name_plural = _('permissions')U
120+
verbose_name_plural = _('permissions')
121121
# unique_together = (('content_type', 'codename'),)
122122
# ordering = ('content_type__app_label', 'content_type__model', 'codename')
123123

@@ -229,7 +229,7 @@ class User(Document):
229229
verbose_name=_('last login'))
230230
date_joined = DateTimeField(default=datetime_now,
231231
verbose_name=_('date joined'))
232-
232+
233233
user_permissions = ListField(ReferenceField(Permission), verbose_name=_('user permissions'),
234234
help_text=_('Permissions for the user.'))
235235

0 commit comments

Comments
 (0)