Ticket #11796: django_1.0.2__contrib_auth_model.diff

File django_1.0.2__contrib_auth_model.diff, 775 bytes (added by russryba, 6 years ago)

Change single line in auth models to order permissions by app, model, then permission

Line 
1*** /mnt/django/Django-1.0.2-final/django/contrib/auth/models.py    Wed Nov 19 00:44:28 2008
2--- /tmp/models.py  Fri Aug 28 11:59:45 2009
3***************
4*** 77,83 ****
5          verbose_name = _('permission')
6          verbose_name_plural = _('permissions')
7          unique_together = (('content_type', 'codename'),)
8!         ordering = ('content_type__app_label', 'codename')
9
10      def __unicode__(self):
11          return u"%s | %s | %s" % (
12--- 77,83 ----
13          verbose_name = _('permission')
14          verbose_name_plural = _('permissions')
15          unique_together = (('content_type', 'codename'),)
16!         ordering = ('content_type__app_label', 'content_type', 'codename')
17
18      def __unicode__(self):
19          return u"%s | %s | %s" % (
Back to Top