accrete 0.0.116__py3-none-any.whl → 0.0.117__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.
@@ -25,19 +25,23 @@ class LogConfigFieldInLine(admin.TabularInline):
25
25
  class LogConfigAdmin(admin.ModelAdmin):
26
26
 
27
27
  model = models.LogConfig
28
- list_display = ('model', 'ignore_errors')
28
+ list_display = ('model', 'ignore_errors', 'exclude_fields')
29
29
  search_fields = ('pk', 'model')
30
- list_filter = ['ignore_errors']
30
+ list_filter = ['ignore_errors', 'exclude_fields']
31
31
  form = LogConfigForm
32
32
  inlines = [LogConfigFieldInLine]
33
33
 
34
- def formfield_for_choice_field(self, db_field, request, **kwargs):
35
- if db_field.name == "model":
36
- kwargs["choices"] = [
37
- ("accepted", "Accepted"),
38
- ("denied", "Denied"),
39
- ]
40
- return super().formfield_for_choice_field(db_field, request, **kwargs)
41
34
 
35
+ class LogAdmin(admin.ModelAdmin):
42
36
 
43
- admin.site.register(models.LogConfig, LogConfigAdmin)
37
+ model = models.LogConfig
38
+ list_display = (
39
+ 'model', 'field', 'object_id', 'log_date', 'old_value', 'new_value',
40
+ 'user', 'tenant'
41
+ )
42
+ search_fields = ('model', 'field', 'object_id', 'old_value')
43
+ list_filter = ['model', 'tenant']
44
+
45
+
46
+ admin.site.register(models.LogConfig, LogConfigAdmin)
47
+ admin.site.register(models.Log, LogAdmin)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: accrete
3
- Version: 0.0.116
3
+ Version: 0.0.117
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
@@ -13,7 +13,7 @@ accrete/urls.py,sha256=goDFR-yhOlLLy7AMi9pmh2aBkxdtZtwXNg6mwI2zPhU,227
13
13
  accrete/views.py,sha256=dwgXLkIjqjG16vlG4C6QeS191HoDnT7bZtkLahJB6wQ,2582
14
14
  accrete/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  accrete/contrib/log/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
- accrete/contrib/log/admin.py,sha256=a3VCS2_YmahBShewMS9yn1QOln-3rmCJqMsa6VnNqdU,1151
16
+ accrete/contrib/log/admin.py,sha256=xeuLk1GdU_M0rZR8SQUzcMeWvV9ud0hz_LJmaut5eJE,1211
17
17
  accrete/contrib/log/apps.py,sha256=O0Cje3MmpxPToJVgO195lBg0tRCy9Ou87-ntcdGBKM0,369
18
18
  accrete/contrib/log/config.py,sha256=vRzPVbiUfpo5NGtgiJv5mEKR_h3qsYI_brxjni6-Z-Y,132
19
19
  accrete/contrib/log/helper.py,sha256=Zzmwxz7vP0jdW2LCw8gDpPNBkqlELaCydz-nxGh7F5Y,2493
@@ -381,7 +381,7 @@ accrete/utils/forms.py,sha256=IvxbXNpSd4a-JBgsTJhs2GHe-DCRWX-xnVPRcoiCzbI,3104
381
381
  accrete/utils/log.py,sha256=BH0MBDweAjx30wGBO4F3sFhbgkSoEs7T1lLLjlYZNnA,407
382
382
  accrete/utils/models.py,sha256=2xTacvcpmDK_Bp4rAK7JdVLf8HU009LYNJ6eSpMgYZI,1014
383
383
  accrete/utils/views.py,sha256=AutijWetWGgjdO1PNc4gxCblT-i1fAfldNDFRbO9Sac,5012
384
- accrete-0.0.116.dist-info/METADATA,sha256=wf_quWOTkB_5CAzijvAu3g2-vPoUixUN2b8Ql76JUmc,4953
385
- accrete-0.0.116.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
386
- accrete-0.0.116.dist-info/licenses/LICENSE,sha256=_7laeMIHnsd3Y2vJEXDYXq_PEXxIcjgJsGt8UIKTRWc,1057
387
- accrete-0.0.116.dist-info/RECORD,,
384
+ accrete-0.0.117.dist-info/METADATA,sha256=RC1CUrQr1-00N1zusVDmwEUj8iM3klPCxyDzDg5WI6w,4953
385
+ accrete-0.0.117.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
386
+ accrete-0.0.117.dist-info/licenses/LICENSE,sha256=_7laeMIHnsd3Y2vJEXDYXq_PEXxIcjgJsGt8UIKTRWc,1057
387
+ accrete-0.0.117.dist-info/RECORD,,