mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-10 09:06:21 +01:00
Improve user and group admin lists
This commit is contained in:
@@ -102,9 +102,12 @@ class GroupAdmin(admin.ModelAdmin):
|
||||
|
||||
def _attributes(self, obj):
|
||||
attributes = list()
|
||||
if _has_auto_groups and (obj.managedalliancegroup_set.exists()
|
||||
if (_has_auto_groups
|
||||
and (
|
||||
obj.managedalliancegroup_set.exists()
|
||||
or obj.managedcorpgroup_set.exists()
|
||||
):
|
||||
)
|
||||
):
|
||||
attributes.append('Auto Group')
|
||||
elif obj.authgroup.internal:
|
||||
attributes.append('Internal')
|
||||
|
||||
Reference in New Issue
Block a user