micro-users 1.4.0__py3-none-any.whl → 1.4.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of micro-users might be problematic. Click here for more details.
- {micro_users-1.4.0.dist-info → micro_users-1.4.1.dist-info}/METADATA +2 -1
- {micro_users-1.4.0.dist-info → micro_users-1.4.1.dist-info}/RECORD +8 -8
- users/forms.py +9 -1
- users/templates/users/user_detail.html +1 -1
- users/templates/users/widgets/grouped_permissions.html +7 -7
- {micro_users-1.4.0.dist-info → micro_users-1.4.1.dist-info}/LICENSE +0 -0
- {micro_users-1.4.0.dist-info → micro_users-1.4.1.dist-info}/WHEEL +0 -0
- {micro_users-1.4.0.dist-info → micro_users-1.4.1.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: micro-users
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.1
|
|
4
4
|
Summary: Arabic Django user management app with abstract user, permissions, and activity logging
|
|
5
5
|
Home-page: https://github.com/debeski/micro-users
|
|
6
6
|
Author: DeBeski
|
|
@@ -282,3 +282,4 @@ users/
|
|
|
282
282
|
| v1.3.1 | • Corrected a misplaced code that caused a crash when editing profile |
|
|
283
283
|
| v1.3.2 | • Minor table modifications |
|
|
284
284
|
| v1.4.0 | • Redesigned Permissions UI (Grouped by App/Action) <br> • Added Global Bulk Permission Selectors <br> • Improved Arabic Localization for Permissions <br> • Optimized printing (hidden forms/buttons) <br> • Fixed various bugs and crashes |
|
|
285
|
+
| v1.4.1 | • Changed "Administrative User" translation to "Responsible User" (مستخدم مسؤول) <br> • Enforced custom sorting order for Permissions (View -> Add -> Change -> Other) |
|
|
@@ -2,7 +2,7 @@ users/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
2
2
|
users/admin.py,sha256=VF0V6hQ9Obcdinnjb8nBHaknas2p3O5w-6yAJ-DeARQ,636
|
|
3
3
|
users/apps.py,sha256=Xb1nGvCl08KaUVqcUG82-jYdG6-KTVjaw_lgr5GIuYY,1133
|
|
4
4
|
users/filters.py,sha256=neOdbyOSYVQXAQ2vKAW-0bcj7KIh9xc8UboHTlaZU4Q,4785
|
|
5
|
-
users/forms.py,sha256=
|
|
5
|
+
users/forms.py,sha256=xWMSGNcsHj7eTj8o1IkOAC5jshaOrMHDXTn7l9P88Ho,15703
|
|
6
6
|
users/models.py,sha256=V_SIyGGq2w_bww7YufMjqXMSKN1u9CkSMPuOLiwPjtc,2100
|
|
7
7
|
users/signals.py,sha256=5Kd3KyfPT6740rvwZj4vy1yXsmjVhmaQ__RB8p5R5aE,1336
|
|
8
8
|
users/tables.py,sha256=2HiDXa_4Hq1at86vfbhg1U3NobMjMWXTVQIJz3AizmQ,2088
|
|
@@ -19,11 +19,11 @@ users/templates/users/manage_users.html,sha256=qWmlIHeuxEldI2sc_ERedbxq5BtUyxtBb
|
|
|
19
19
|
users/templates/users/profile.html,sha256=Ir8zvYUgDm89BlwVuuCsPJIVvTPa_2wH3HAaitPc4s8,2911
|
|
20
20
|
users/templates/users/profile_edit.html,sha256=L9DUHlQHG-PmxwxBbSjgPk1dEmy0spPi6wXzT4hQe-U,4218
|
|
21
21
|
users/templates/users/user_actions.html,sha256=J44-sn0fMbLUWjdtlcf5YhgT5OYRykr1mFkeVXoI1ew,1543
|
|
22
|
-
users/templates/users/user_detail.html,sha256=
|
|
22
|
+
users/templates/users/user_detail.html,sha256=yPiuOGF96rV8t2H1Fl2hhIq78N1588ZFbh5gbAezaxw,2053
|
|
23
23
|
users/templates/users/user_form.html,sha256=jcyI7OQZOY4ue4DajPtfjAt2SmAYO5ZgHNOqTp2-FO0,1352
|
|
24
|
-
users/templates/users/widgets/grouped_permissions.html,sha256=
|
|
25
|
-
micro_users-1.4.
|
|
26
|
-
micro_users-1.4.
|
|
27
|
-
micro_users-1.4.
|
|
28
|
-
micro_users-1.4.
|
|
29
|
-
micro_users-1.4.
|
|
24
|
+
users/templates/users/widgets/grouped_permissions.html,sha256=q51WO-xMvg0aAqn6Ey8pMINDbFOHap_BgHcMxOvfLBw,9878
|
|
25
|
+
micro_users-1.4.1.dist-info/LICENSE,sha256=Fco89ULLSSxKkC2KKnx57SaT0R7WOkZfuk8IYcGiN50,1063
|
|
26
|
+
micro_users-1.4.1.dist-info/METADATA,sha256=cdGwqpDvTHTkM9JuionfJZPG9bJ80ds2VdWaLEfQ2Nw,10256
|
|
27
|
+
micro_users-1.4.1.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
|
28
|
+
micro_users-1.4.1.dist-info/top_level.txt,sha256=tWT24ZcWau2wrlbpU_h3mP2jRukyLaVYiyHBuOezpLQ,6
|
|
29
|
+
micro_users-1.4.1.dist-info/RECORD,,
|
users/forms.py
CHANGED
|
@@ -60,8 +60,8 @@ class GroupedPermissionWidget(ChoiceWidget):
|
|
|
60
60
|
action = 'other'
|
|
61
61
|
codename = perm.codename
|
|
62
62
|
if codename.startswith('view_'): action = 'view'
|
|
63
|
-
elif codename.startswith('change_'): action = 'change'
|
|
64
63
|
elif codename.startswith('add_'): action = 'add'
|
|
64
|
+
elif codename.startswith('change_'): action = 'change'
|
|
65
65
|
elif codename.startswith('delete_'): action = 'delete'
|
|
66
66
|
|
|
67
67
|
# Build option dict
|
|
@@ -85,6 +85,14 @@ class GroupedPermissionWidget(ChoiceWidget):
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
grouped_perms[app_label]['actions'].setdefault(action, []).append(option)
|
|
88
|
+
|
|
89
|
+
# Sort actions within each app: View -> Add -> Change -> Delete -> Other
|
|
90
|
+
action_order = {'view': 1, 'add': 2, 'change': 3, 'delete': 4, 'other': 5}
|
|
91
|
+
for app_label, app_data in grouped_perms.items():
|
|
92
|
+
app_data['actions'] = dict(sorted(
|
|
93
|
+
app_data['actions'].items(),
|
|
94
|
+
key=lambda item: action_order.get(item[0], 99)
|
|
95
|
+
))
|
|
88
96
|
|
|
89
97
|
context['widget']['grouped_perms'] = grouped_perms
|
|
90
98
|
return context
|
|
@@ -8,22 +8,22 @@
|
|
|
8
8
|
<input class="form-check-input global-select" type="checkbox" id="{{ id }}_global_view" data-action-target="view">
|
|
9
9
|
<label class="form-check-label fw-bold" for="{{ id }}_global_view">عرض الكل</label>
|
|
10
10
|
</div>
|
|
11
|
-
<div class="form-check form-check-inline">
|
|
12
|
-
<input class="form-check-input global-select" type="checkbox" id="{{ id }}_global_change" data-action-target="change">
|
|
13
|
-
<label class="form-check-label fw-bold" for="{{ id }}_global_change">تعديل الكل</label>
|
|
14
|
-
</div>
|
|
15
11
|
<div class="form-check form-check-inline">
|
|
16
12
|
<input class="form-check-input global-select" type="checkbox" id="{{ id }}_global_add" data-action-target="add">
|
|
17
13
|
<label class="form-check-label fw-bold" for="{{ id }}_global_add">إضافة الكل</label>
|
|
18
14
|
</div>
|
|
15
|
+
<div class="form-check form-check-inline">
|
|
16
|
+
<input class="form-check-input global-select" type="checkbox" id="{{ id }}_global_change" data-action-target="change">
|
|
17
|
+
<label class="form-check-label fw-bold" for="{{ id }}_global_change">تعديل الكل</label>
|
|
18
|
+
</div>
|
|
19
19
|
<div class="form-check form-check-inline">
|
|
20
20
|
<input class="form-check-input global-select" type="checkbox" id="{{ id }}_global_other" data-action-target="other">
|
|
21
|
-
<label class="form-check-label fw-bold" for="{{ id }}_global_other"
|
|
21
|
+
<label class="form-check-label fw-bold" for="{{ id }}_global_other">الـأخرى</label>
|
|
22
22
|
</div>
|
|
23
23
|
|
|
24
24
|
<button type="button" class="btn btn-outline-primary ms-auto" data-bs-toggle="collapse"
|
|
25
25
|
data-bs-target="#{{ id }}_detailed_list" aria-expanded="false" aria-controls="{{ id }}_detailed_list">
|
|
26
|
-
<i class="bi bi-list-check"></i> إظهار
|
|
26
|
+
<i class="bi bi-list-check"></i> إظهار كل الصلاحيات
|
|
27
27
|
</button>
|
|
28
28
|
</div>
|
|
29
29
|
</div>
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
data-group-target="{{ id }}_{{ app_label }}_{{ action_name }}_group">
|
|
46
46
|
<label class="form-check-label fw-bold" for="{{ id }}_{{ app_label }}_{{ action_name }}_all">
|
|
47
47
|
{% if action_name == 'view' %}
|
|
48
|
-
|
|
48
|
+
عرض الكل ({{ options|length }})
|
|
49
49
|
{% elif action_name == 'change' %}
|
|
50
50
|
تعديل الكل ({{ options|length }})
|
|
51
51
|
{% elif action_name == 'add' %}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|