Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

magic-removal: Fixed #1670 -- Added translation hooks for User and Gr…

…oup model fields that didn't have them.

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2727 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit e55924b833b77e98d24768749409cf2705f61180 1 parent 43395b0
Adrian Holovaty adrianholovaty authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 django/contrib/auth/models.py
6 django/contrib/auth/models.py
View
@@ -24,7 +24,7 @@ def __repr__(self):
class Group(models.Model):
name = models.CharField(_('name'), maxlength=80, unique=True)
- permissions = models.ManyToManyField(Permission, blank=True, filter_interface=models.HORIZONTAL)
+ permissions = models.ManyToManyField(_('permissions'), Permission, blank=True, filter_interface=models.HORIZONTAL)
class Meta:
verbose_name = _('Group')
verbose_name_plural = _('Groups')
@@ -62,9 +62,9 @@ class User(models.Model):
is_superuser = models.BooleanField(_('superuser status'))
last_login = models.DateTimeField(_('last login'), default=models.LazyDate())
date_joined = models.DateTimeField(_('date joined'), default=models.LazyDate())
- groups = models.ManyToManyField(Group, blank=True,
+ groups = models.ManyToManyField(_('groups'), Group, blank=True,
help_text=_("In addition to the permissions manually assigned, this user will also get all permissions granted to each group he/she is in."))
- user_permissions = models.ManyToManyField(Permission, blank=True, filter_interface=models.HORIZONTAL)
+ user_permissions = models.ManyToManyField(_('user permissions'), Permission, blank=True, filter_interface=models.HORIZONTAL)
objects = UserManager()
class Meta:
verbose_name = _('User')
Please sign in to comment.
Something went wrong with that request. Please try again.