Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 authored April 23, 2006

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  django/contrib/auth/models.py
6  django/contrib/auth/models.py
@@ -24,7 +24,7 @@ def __repr__(self):
24 24
 
25 25
 class Group(models.Model):
26 26
     name = models.CharField(_('name'), maxlength=80, unique=True)
27  
-    permissions = models.ManyToManyField(Permission, blank=True, filter_interface=models.HORIZONTAL)
  27
+    permissions = models.ManyToManyField(_('permissions'), Permission, blank=True, filter_interface=models.HORIZONTAL)
28 28
     class Meta:
29 29
         verbose_name = _('Group')
30 30
         verbose_name_plural = _('Groups')
@@ -62,9 +62,9 @@ class User(models.Model):
62 62
     is_superuser = models.BooleanField(_('superuser status'))
63 63
     last_login = models.DateTimeField(_('last login'), default=models.LazyDate())
64 64
     date_joined = models.DateTimeField(_('date joined'), default=models.LazyDate())
65  
-    groups = models.ManyToManyField(Group, blank=True,
  65
+    groups = models.ManyToManyField(_('groups'), Group, blank=True,
66 66
         help_text=_("In addition to the permissions manually assigned, this user will also get all permissions granted to each group he/she is in."))
67  
-    user_permissions = models.ManyToManyField(Permission, blank=True, filter_interface=models.HORIZONTAL)
  67
+    user_permissions = models.ManyToManyField(_('user permissions'), Permission, blank=True, filter_interface=models.HORIZONTAL)
68 68
     objects = UserManager()
69 69
     class Meta:
70 70
         verbose_name = _('User')

0 notes on commit e55924b

Please sign in to comment.
Something went wrong with that request. Please try again.