micro-users 1.8.6__py3-none-any.whl → 1.8.8__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: micro-users
3
- Version: 1.8.6
3
+ Version: 1.8.8
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
@@ -107,12 +107,12 @@ TEMPLATES = [
107
107
  ]
108
108
  ```
109
109
 
110
- 3. Set custom user model in `settings.py`:
110
+ 4. Set custom user model in `settings.py`:
111
111
  ```python
112
112
  AUTH_USER_MODEL = 'users.CustomUser'
113
113
  ```
114
114
 
115
- 4. Include URLs in your main project folder `urls.py`:
115
+ 5. Include URLs in your main project folder `urls.py`:
116
116
  ```python
117
117
  urlpatterns = [
118
118
  ...
@@ -120,7 +120,7 @@ urlpatterns = [
120
120
  ]
121
121
  ```
122
122
 
123
- 5. Run migrations:
123
+ 6. Run migrations:
124
124
  ```bash
125
125
  python manage.py migrate users
126
126
  ```
@@ -183,21 +183,6 @@ users/
183
183
  ### Replacing Login Logo
184
184
  To replace the default login logo, simply place your own `login_logo.webp` image in your project's static directory at `static/img/login_logo.webp`.
185
185
 
186
- ### Theme Configuration
187
- You can configure the login page colors by defining `MICRO_USERS_THEME` in your project's `settings.py`. This dictionary overrides the default CSS variables.
188
-
189
- ```python
190
- MICRO_USERS_THEME = {
191
- 'right_bg': '#474745',
192
- 'left_bg': 'white',
193
- 'selection_bg': '#dbdbdb',
194
- 'gradient_start': '#a2a2a7',
195
- 'gradient_end': '#474745',
196
- # Additional keys supported:
197
- # 'selection_moz_bg', 'left_shadow', 'right_shadow', 'right_text',
198
- # 'label_color', 'input_text', 'submit_color', 'submit_focus', 'submit_active'
199
- }
200
- ```
201
186
 
202
187
  ## Version History
203
188
 
@@ -233,3 +218,5 @@ MICRO_USERS_THEME = {
233
218
  | v1.8.4 | • **Strict CSP**: Refactored inline JS event handlers to use Event Listeners, fully resolving CSP violation errors |
234
219
  | v1.8.5 | • **Optional Scopes**: Added ability for Superusers to toggle Scope system ON/OFF via User Management interface |
235
220
  | v1.8.6 | • **Strict CSP Repair**: Fixed remaining inline event handlers in User Management pages (`manage_users`, `scope_form`) that were violating CSP directives, moving all logic to external `manage_users.js` |
221
+ | v1.8.7 | • Fixed a couple of template tab title mismatches |
222
+ | v1.8.8 | • Fixed a couple of template content title mismatches and classes |
@@ -2,7 +2,7 @@ users/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  users/admin.py,sha256=CRS5muWUSXUC2pQteSCgUgpFjPtGnx1b5z1daODjUMM,1359
3
3
  users/apps.py,sha256=elucgGYMWg-ASRP-x495pn5mmj6XqyCbIIMFse8bSiQ,1471
4
4
  users/context_processors.py,sha256=sDM2Vpc3ax8zfH4ftxZgK9VfsLN4uFoob7Q0os__z5A,207
5
- users/filters.py,sha256=_uvi1qLEE7aLqKLwjIpv6dflKlyFd0t0Muv6IXBfIxw,6094
5
+ users/filters.py,sha256=xuxMBB91MKQSrLiimmxdBHV4ELE0Uq_7Ul5gwj0sVOo,6163
6
6
  users/forms.py,sha256=STDZ8ZeFNGG-zWx2mLamGjJSscNER1abx56AovvQax0,22485
7
7
  users/middleware.py,sha256=CgzmKb6_4TUkwMZ0h7UgQd80DKUXsmzKvsc3V2JIujY,976
8
8
  users/models.py,sha256=85xeKo1wVBAcE0a5eJIPDcYpFyVUIHAKSls6nTuPs1Y,3337
@@ -27,9 +27,9 @@ users/static/users/js/login.js,sha256=PmUXzsb1OYKne6XPZwolbTLWEZsl77J0pgRYakam1W
27
27
  users/static/users/js/manage_users.js,sha256=3Pr3DUNmb-ZE1pHTGcrZRPSgXrXaPcRdSTEyq4fFb5w,6021
28
28
  users/static/users/js/permissions.js,sha256=ILGKe8sNYS4p-dW-hAzhZ29UKSJwntw3B2NLciwR_Uk,3884
29
29
  users/templates/registration/login.html,sha256=P-oUVjO6dd9AYJ_fAkGuJQm6JflqrAoVz7oAzvJYLbY,2958
30
- users/templates/users/manage_users.html,sha256=yKqQGOZAcTUctdxwuhTiREtJetXe6kaV3YGAenueCVs,6042
31
- users/templates/users/user_activity_log.html,sha256=nKVOvmkbVjGWZZyYNJahs7drWQFh_hvyUDWuauwJV6U,571
32
- users/templates/users/user_detail.html,sha256=FAPQYXr5qNgzaZ-mAnaNoCb8dVsUHtj_hY87ZYO9_d0,5302
30
+ users/templates/users/manage_users.html,sha256=Y-tBaDjxXqPNcO2KcJoRbdUgEzcZdpIQFsjV2EvN75E,6211
31
+ users/templates/users/user_activity_log.html,sha256=wqyCYFnu2DZ86IO3ym-OCjAVt49POlvgt11VtRmJ_7U,727
32
+ users/templates/users/user_detail.html,sha256=DOIcDg6NcrVXSyYruN-QoRvC7Gy4hOhnrdgMZUO8oAU,5358
33
33
  users/templates/users/user_form.html,sha256=jcyI7OQZOY4ue4DajPtfjAt2SmAYO5ZgHNOqTp2-FO0,1352
34
34
  users/templates/users/partials/scope_actions.html,sha256=seGpp59rnVk523pA3lpNyKGgDfZzsgO1sw4Umdr-86I,276
35
35
  users/templates/users/partials/scope_form.html,sha256=ZQZB3XLLGeHHT82uhm0XxqLk5nYiP59X01W3MivtgLo,718
@@ -38,8 +38,8 @@ users/templates/users/partials/user_actions.html,sha256=c1VzRy0xogAwDdMG2pBdkzJ9
38
38
  users/templates/users/profile/profile.html,sha256=qeJwePWaTc9zGiaXoxId8DqLIQsTc4vuDCNxL50eyz0,5374
39
39
  users/templates/users/profile/profile_edit.html,sha256=hhltTIdl62NNX290nFNZcQwbW1idXEU_DYlrAp07MWk,5242
40
40
  users/templates/users/widgets/grouped_permissions.html,sha256=4xhrCnp7UxkZetTU9sezVRZaSn61-Ar9iCbdtufGSis,4100
41
- micro_users-1.8.6.dist-info/LICENSE,sha256=Fco89ULLSSxKkC2KKnx57SaT0R7WOkZfuk8IYcGiN50,1063
42
- micro_users-1.8.6.dist-info/METADATA,sha256=SOC2z6mtd2tEg06z6i4bunLhhQTiyj_swH_6JfMhwWg,12116
43
- micro_users-1.8.6.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
44
- micro_users-1.8.6.dist-info/top_level.txt,sha256=tWT24ZcWau2wrlbpU_h3mP2jRukyLaVYiyHBuOezpLQ,6
45
- micro_users-1.8.6.dist-info/RECORD,,
41
+ micro_users-1.8.8.dist-info/LICENSE,sha256=Fco89ULLSSxKkC2KKnx57SaT0R7WOkZfuk8IYcGiN50,1063
42
+ micro_users-1.8.8.dist-info/METADATA,sha256=Jddt52DnLA_9OSyS-VCow9qktjTg5s6fx4EQk14fPoA,11712
43
+ micro_users-1.8.8.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
44
+ micro_users-1.8.8.dist-info/top_level.txt,sha256=tWT24ZcWau2wrlbpU_h3mP2jRukyLaVYiyHBuOezpLQ,6
45
+ micro_users-1.8.8.dist-info/RECORD,,
users/filters.py CHANGED
@@ -6,7 +6,7 @@ from crispy_forms.helper import FormHelper
6
6
  from crispy_forms.layout import Layout, Row, Column, Field, HTML, Hidden
7
7
  from django.db.models import Q
8
8
  from django.apps import apps # Import apps
9
-
9
+ from users.utils import is_scope_enabled
10
10
  User = get_user_model() # Use custom user model
11
11
 
12
12
  class UserFilter(django_filters.FilterSet):
@@ -104,9 +104,9 @@ class UserActivityLogFilter(django_filters.FilterSet):
104
104
  row_fields = [
105
105
  Column(Field('keyword', placeholder="البحث"), css_class='form-group col-auto flex-fill'),
106
106
  ]
107
-
108
- if not (self.request and self.request.user.scope):
109
- row_fields.append(Column(Field('scope', placeholder="النطاق", dir="rtl"), css_class='form-group col-auto'))
107
+ if is_scope_enabled():
108
+ if not (self.request and self.request.user.scope):
109
+ row_fields.append(Column(Field('scope', placeholder="النطاق", dir="rtl"), css_class='form-group col-auto'))
110
110
 
111
111
  # Prepare clear button URL with sort parameter if exists
112
112
  clear_url = '{% url "user_activity_log" %}'
@@ -3,16 +3,23 @@
3
3
  {% load static %}
4
4
  {% load crispy_forms_tags %}
5
5
 
6
- {% block title %}الاعدادت - إدارة المستخدمين{% endblock %}
6
+ {% block title %}إدارة المستخدمين{% endblock %}
7
7
 
8
8
  {% block content %}
9
9
  <link rel="stylesheet" href="{% static 'users/css/style.css' %}">
10
10
 
11
- <form method="get" class="py-3 g-2 no-print">
11
+ <div class="row">
12
+ <div class="col-12">
13
+ <h2 class="page-title"><i class="bi bi-people me-2"></i> إدارة المستخدمين</h2>
14
+ </div>
15
+ </div>
16
+
17
+
18
+ <form method="get" class="py-1 g-2 no-print">
12
19
  {% crispy filter.form %}
13
20
  </form>
14
21
 
15
- <div class="card border-light shadow">
22
+ <div class="card border-light shadow-sm">
16
23
  <div class="card-body p-0 table-responsive-lg">
17
24
  <!-- Render the table -->
18
25
  {% render_table table %}
@@ -3,12 +3,18 @@
3
3
  {% load static %}
4
4
  {% load crispy_forms_tags %}
5
5
 
6
- {% block title %}الاعدادت - السجل{% endblock %}
6
+ {% block title %}سجل{% endblock %}
7
7
 
8
8
  {% block content %}
9
9
  <link rel="stylesheet" href="{% static 'users/css/style.css' %}">
10
10
 
11
- <form method="get" class="py-3 g-2 no-print m-0">
11
+ <div class="row">
12
+ <div class="col-12">
13
+ <h2 class="page-title"><i class="bi bi-clock-history me-2"></i> سجل النشاط</h2>
14
+ </div>
15
+ </div>
16
+
17
+ <form method="get" class="py-1 g-2 no-print m-0">
12
18
  {% crispy filter.form %}
13
19
  </form>
14
20
 
@@ -2,7 +2,7 @@
2
2
  {% load crispy_forms_tags %}
3
3
  {% load django_tables2 %}
4
4
  {% load static %}
5
-
5
+ {% block title %}تفاصيل مستخدم{% endblock %}
6
6
  {% block content %}
7
7
 
8
8
  <link rel="stylesheet" href="{% static 'users/css/detail.css' %}">