accrete 0.0.126__py3-none-any.whl → 0.0.128__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.
@@ -0,0 +1,8 @@
1
+ from .tenant import get_tenant, get_member
2
+
3
+
4
+ def tenant(request):
5
+ return {
6
+ 'member': get_member(),
7
+ 'tenant': get_tenant()
8
+ }
@@ -1,4 +1,27 @@
1
1
  from django.contrib import admin
2
2
  from .models import User
3
3
 
4
- admin.site.register(User)
4
+
5
+ class UserAdmin(admin.ModelAdmin):
6
+
7
+ model = User
8
+ list_display = (
9
+ 'email',
10
+ 'username',
11
+ 'first_name',
12
+ 'last_name'
13
+ )
14
+ search_fields = [
15
+ 'email',
16
+ 'username',
17
+ 'first_name',
18
+ 'last_name'
19
+ ]
20
+ list_filter = [
21
+ 'is_superuser',
22
+ 'is_staff',
23
+ 'is_active'
24
+ ]
25
+
26
+
27
+ admin.site.register(User, UserAdmin)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: accrete
3
- Version: 0.0.126
3
+ Version: 0.0.128
4
4
  Summary: Django Shared Schema Multi Tenant
5
5
  Author-email: Benedikt Jilek <benedikt.jilek@pm.me>
6
6
  License: Copyright (c) 2023 Benedikt Jilek
@@ -2,6 +2,7 @@ accrete/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  accrete/admin.py,sha256=6NiX8_3pYIhnru5hNzvnW4xfzWsbf7gZj8Z2p38xIOk,1232
3
3
  accrete/apps.py,sha256=F7ynMLHJr_6bRujWtZVUzCliY2CGKiDvyUmL4F68L2E,146
4
4
  accrete/config.py,sha256=1Yubvz5PVdCsX0tA7HvazhtnvCvgCoEl33_dR8SHpb8,392
5
+ accrete/context_processors.py,sha256=DySglwyD2TwPsxhElVkYDvyBBUJabEKGMiKCLe0KN4Q,148
5
6
  accrete/fields.py,sha256=9SlltB5AJvDfiAbYGWZemrqpjqDl1XNgNrhyTGoBJ2A,4693
6
7
  accrete/forms.py,sha256=H2hPQemslRLvTVV0Wl1TfUmTc5wU3Z98nQTMiLMliqo,1288
7
8
  accrete/managers.py,sha256=DevRVm7cStvlfz6TriitSINr40POCi4HNaHX48VkrMA,1620
@@ -217,7 +218,7 @@ accrete/contrib/ui/templatetags/ui.py,sha256=M8rbD6k7qS4uMSSA7_G0x3bK56b4aw5VB6Y
217
218
  accrete/contrib/ui/widgets/__init__.py,sha256=W_y10jfu37lygp4frXuKFSGec97gpNbWskG6DMhTKtY,69
218
219
  accrete/contrib/ui/widgets/search_select.py,sha256=RloKdh_t8So6aL4-SmHMAd0-bVY57_RFVM0Hmhw2q5c,3432
219
220
  accrete/contrib/user/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
220
- accrete/contrib/user/admin.py,sha256=YS4iApli7XUaIl9GsEJxys2j8sepX0by88omYHjff-E,85
221
+ accrete/contrib/user/admin.py,sha256=SCKhmveujY-hoK65B07FnzzW6fQl2EmsAEtEFVPRABY,455
221
222
  accrete/contrib/user/apps.py,sha256=oHDrAiHf-G57mZLyxqGJzRY2DbPprGFD-QgyVJG_ruI,156
222
223
  accrete/contrib/user/forms.py,sha256=BpwF_t1-7BpBVmwLpIm6hdqUpPqajoR0ZGOJ8cmaO6M,3290
223
224
  accrete/contrib/user/middleware.py,sha256=qblcujwJsthopagyT-hPFq4HsMyGt-VvqZw5TQopBjk,403
@@ -259,7 +260,7 @@ accrete/utils/forms.py,sha256=1UQoG0cXel4Tg-a_cG9doJNrl62a0JMDVEYrT5TSX1s,3383
259
260
  accrete/utils/log.py,sha256=BH0MBDweAjx30wGBO4F3sFhbgkSoEs7T1lLLjlYZNnA,407
260
261
  accrete/utils/models.py,sha256=2xTacvcpmDK_Bp4rAK7JdVLf8HU009LYNJ6eSpMgYZI,1014
261
262
  accrete/utils/views.py,sha256=AutijWetWGgjdO1PNc4gxCblT-i1fAfldNDFRbO9Sac,5012
262
- accrete-0.0.126.dist-info/METADATA,sha256=VKDm7rneeTHPMkV34gh-IO7rbliXvptbo21uzt7lpDY,4953
263
- accrete-0.0.126.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
264
- accrete-0.0.126.dist-info/licenses/LICENSE,sha256=_7laeMIHnsd3Y2vJEXDYXq_PEXxIcjgJsGt8UIKTRWc,1057
265
- accrete-0.0.126.dist-info/RECORD,,
263
+ accrete-0.0.128.dist-info/METADATA,sha256=3HnKri4Msg5AjnVNVEP5NRET1BmJb-geQnwOmWStajk,4953
264
+ accrete-0.0.128.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
265
+ accrete-0.0.128.dist-info/licenses/LICENSE,sha256=_7laeMIHnsd3Y2vJEXDYXq_PEXxIcjgJsGt8UIKTRWc,1057
266
+ accrete-0.0.128.dist-info/RECORD,,