Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added blank lines around Meta and Admin classes in django.contrib.aut…

…h.models

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4945 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit c7f6cd02436fce1cf47eb0fa4b00fbc9b5ebece6 1 parent e3308e1
Adrian Holovaty authored April 07, 2007

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

  1. 5  django/contrib/auth/models.py
5  django/contrib/auth/models.py
@@ -38,6 +38,7 @@ class Permission(models.Model):
38 38
     name = models.CharField(_('name'), maxlength=50)
39 39
     content_type = models.ForeignKey(ContentType)
40 40
     codename = models.CharField(_('codename'), maxlength=100)
  41
+
41 42
     class Meta:
42 43
         verbose_name = _('permission')
43 44
         verbose_name_plural = _('permissions')
@@ -56,10 +57,12 @@ class Group(models.Model):
56 57
     """
57 58
     name = models.CharField(_('name'), maxlength=80, unique=True)
58 59
     permissions = models.ManyToManyField(Permission, verbose_name=_('permissions'), blank=True, filter_interface=models.HORIZONTAL)
  60
+
59 61
     class Meta:
60 62
         verbose_name = _('group')
61 63
         verbose_name_plural = _('groups')
62 64
         ordering = ('name',)
  65
+
63 66
     class Admin:
64 67
         search_fields = ('name',)
65 68
 
@@ -101,10 +104,12 @@ class User(models.Model):
101 104
         help_text=_("In addition to the permissions manually assigned, this user will also get all permissions granted to each group he/she is in."))
102 105
     user_permissions = models.ManyToManyField(Permission, verbose_name=_('user permissions'), blank=True, filter_interface=models.HORIZONTAL)
103 106
     objects = UserManager()
  107
+
104 108
     class Meta:
105 109
         verbose_name = _('user')
106 110
         verbose_name_plural = _('users')
107 111
         ordering = ('username',)
  112
+
108 113
     class Admin:
109 114
         fields = (
110 115
             (None, {'fields': ('username', 'password')}),

0 notes on commit c7f6cd0

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