Project

General

Profile

0001-manager-display-and-configure-role-levels-33550.patch

Valentin Deniaud, 29 May 2019 03:01 PM

Download (1.56 KB)

View differences:

Subject: [PATCH 1/4] manager: display and configure role levels (#33550)

 src/authentic2/manager/forms.py  | 2 +-
 src/authentic2/manager/tables.py | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
src/authentic2/manager/forms.py
665 665

  
666 666
    class Meta:
667 667
        model = get_role_model()
668
        fields = ('name', 'ou', 'description')
668
        fields = ('name', 'ou', 'description', 'auth_level')
669 669

  
670 670

  
671 671
class OUEditForm(SlugMixin, CssClass, forms.ModelForm):
src/authentic2/manager/tables.py
79 79
    ou = tables.Column()
80 80
    member_count = tables.Column(verbose_name=_('Direct member count'),
81 81
                                 orderable=False)
82
    auth_level = tables.Column(orderable=False)
82 83

  
83 84
    class Meta:
84 85
        models = get_role_model()
85 86
        attrs = {'class': 'main', 'id': 'role-table'}
86
        fields = ('name', 'ou', 'member_count')
87
        fields = ('name', 'ou', 'member_count', 'auth_level')
87 88

  
88 89

  
89 90
class PermissionTable(tables.Table):
90
-