Commits

Anonymous committed a417f36

rename _get_* methods to _get_objs

Comments (0)

Files changed (1)

djangotoolbox/auth/models.py

     user = models.ForeignKey(User)
     fk_list = ListField(models.ForeignKey(Permission))
 
-    def _get_permissions(self):
+    def _get_objs(self):
         if not hasattr(self, '_permissions_cache'):
             setattr(self, '_permissions_cache', get_objs(Permission, self.fk_list))            
         return self._permissions_cache
-    permissions = property(_get_permissions)
+    permissions = property(_get_objs)
 
 
 class GroupPermissionList(models.Model):
     group = models.ForeignKey(Group)
     fk_list = ListField(models.ForeignKey(Permission))
 
-    def _get_permissions(self):
+    def _get_objs(self):
         if not hasattr(self, '_permissions_cache'):
             setattr(self, '_permissions_cache', get_objs(Permission, self.fk_list))            
         return self._permissions_cache
-    permissions = property(_get_permissions)
+    permissions = property(_get_objs)
 
 class GroupList(models.Model):
     """
     def __unicode__(self):
         return u'%s' %(self.user.username)
     
-    def _get_group_list(self):
+    def _get_objs(self):
         if not hasattr(self, '_groups_cache'):
             setattr(self, '_groups_cache', get_objs(Group, self.fk_list))
         return self._groups_cache
-    groups = property(_get_group_list)
+    groups = property(_get_objs)