django-field-audit 1.2.7__py2.py3-none-any.whl → 1.2.9__py2.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 django-field-audit might be problematic. Click here for more details.
- {django_field_audit-1.2.7.dist-info → django_field_audit-1.2.9.dist-info}/METADATA +12 -3
- {django_field_audit-1.2.7.dist-info → django_field_audit-1.2.9.dist-info}/RECORD +8 -8
- {django_field_audit-1.2.7.dist-info → django_field_audit-1.2.9.dist-info}/WHEEL +1 -1
- field_audit/__init__.py +1 -1
- field_audit/auditors.py +1 -1
- field_audit/models.py +2 -2
- {django_field_audit-1.2.7.dist-info → django_field_audit-1.2.9.dist-info}/LICENSE +0 -0
- {django_field_audit-1.2.7.dist-info → django_field_audit-1.2.9.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: django-field-audit
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.9
|
|
4
4
|
Summary: Audit Field Changes on Django Models
|
|
5
5
|
Home-page: https://github.com/dimagi/django-field-audit
|
|
6
6
|
Maintainer: Joel Miller
|
|
@@ -26,6 +26,14 @@ Classifier: Framework :: Django :: 4.2
|
|
|
26
26
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
27
27
|
Description-Content-Type: text/markdown
|
|
28
28
|
License-File: LICENSE
|
|
29
|
+
Dynamic: classifier
|
|
30
|
+
Dynamic: description
|
|
31
|
+
Dynamic: description-content-type
|
|
32
|
+
Dynamic: home-page
|
|
33
|
+
Dynamic: license
|
|
34
|
+
Dynamic: maintainer
|
|
35
|
+
Dynamic: maintainer-email
|
|
36
|
+
Dynamic: summary
|
|
29
37
|
|
|
30
38
|
# Audit Field Changes on Django Models
|
|
31
39
|
|
|
@@ -274,7 +282,8 @@ python example/manage.py makemigrations field_audit
|
|
|
274
282
|
|
|
275
283
|
### Uploading to PyPI
|
|
276
284
|
|
|
277
|
-
|
|
285
|
+
First bump the package version in the `field_audit/__init__.py` file. Then create a changelog entry in the CHANGELOG.md
|
|
286
|
+
file. After these changes are merged, you should tag the main branch with the new version. Then, package and upload the generated files to PyPI.
|
|
278
287
|
|
|
279
288
|
```shell
|
|
280
289
|
pip install -r pkg-requires.txt
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
field_audit/__init__.py,sha256=
|
|
1
|
+
field_audit/__init__.py,sha256=ukvhgwNNpEmH3wqrM6bBaNi4fH-ORfPzcyDbeWUcvnA,75
|
|
2
2
|
field_audit/apps.py,sha256=04NYTi54zEuYPAhxEvsS61hmoPMIMVfPQKi4DOa9nE0,265
|
|
3
|
-
field_audit/auditors.py,sha256=
|
|
3
|
+
field_audit/auditors.py,sha256=V5Ese7w4V_WTLklIm5EOsjOJ3t4Iwp69AmgwxNXD33Y,4292
|
|
4
4
|
field_audit/const.py,sha256=U7c5Y4a5YjmvaZjsUpDhdTOvkcoaS5aqFf_L3C5GtYk,1135
|
|
5
5
|
field_audit/field_audit.py,sha256=qPHke6cpeWre6jFodiWsDIkyxKwCStDBtunQjUIwCZ8,5891
|
|
6
6
|
field_audit/middleware.py,sha256=JQMdM1vITddHFCqIX_M8_UDIvbCKU8BhY_sWccGVS-Y,468
|
|
7
|
-
field_audit/models.py,sha256=
|
|
7
|
+
field_audit/models.py,sha256=0MaZa3M2he6yrP-lQ09atCwSWFaPT-F_6RpzobQnUA0,29728
|
|
8
8
|
field_audit/utils.py,sha256=tILEuWG8JCP98vWsZckdpcjcNi5BlBDbBGDma_WVIlc,3437
|
|
9
9
|
field_audit/management/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
10
|
field_audit/management/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -12,8 +12,8 @@ field_audit/management/commands/bootstrap_field_audit_events.py,sha256=QN8PNKqTM
|
|
|
12
12
|
field_audit/migrations/0001_initial.py,sha256=UXnmSkG8ZZmh-4DrqYACH9LSJ0Mh74nW0u_yKdS1ctg,1297
|
|
13
13
|
field_audit/migrations/0002_add_is_bootstrap_column.py,sha256=lkPNMk9Kb6IeaX9E08Snar-0_zr1epVrW9VSq24f9Ns,972
|
|
14
14
|
field_audit/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
|
-
django_field_audit-1.2.
|
|
16
|
-
django_field_audit-1.2.
|
|
17
|
-
django_field_audit-1.2.
|
|
18
|
-
django_field_audit-1.2.
|
|
19
|
-
django_field_audit-1.2.
|
|
15
|
+
django_field_audit-1.2.9.dist-info/LICENSE,sha256=DUmNjtND8byIKaTpjoksSUVazUJ_-3sPWOyyLiOvyDs,1508
|
|
16
|
+
django_field_audit-1.2.9.dist-info/METADATA,sha256=K2B20mIRsOpglILDX4jEcjOn2muUuWZ3sFsMBI0ZiLE,10564
|
|
17
|
+
django_field_audit-1.2.9.dist-info/WHEEL,sha256=9Hm2OB-j1QcCUq9Jguht7ayGIIZBRTdOXD1qg9cCgPM,109
|
|
18
|
+
django_field_audit-1.2.9.dist-info/top_level.txt,sha256=wa_olzk0PU62yd5m6tScO-flaKF_xQyLIV_hZY0vi38,12
|
|
19
|
+
django_field_audit-1.2.9.dist-info/RECORD,,
|
field_audit/__init__.py
CHANGED
field_audit/auditors.py
CHANGED
|
@@ -107,7 +107,7 @@ class SystemUserAuditor(BaseAuditor):
|
|
|
107
107
|
try:
|
|
108
108
|
# get owner of STDIN file on login sessions (e.g. SSH)
|
|
109
109
|
output = check_output(["who", "-m"], stderr=DEVNULL)
|
|
110
|
-
except CalledProcessError:
|
|
110
|
+
except (FileNotFoundError, CalledProcessError):
|
|
111
111
|
self.has_who_bin = False
|
|
112
112
|
else:
|
|
113
113
|
if output:
|
field_audit/models.py
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
from datetime import datetime
|
|
2
1
|
from enum import Enum
|
|
3
2
|
from functools import wraps
|
|
4
3
|
from itertools import islice
|
|
@@ -6,6 +5,7 @@ from itertools import islice
|
|
|
6
5
|
from django.conf import settings
|
|
7
6
|
from django.db import models, transaction
|
|
8
7
|
from django.db.models import Expression
|
|
8
|
+
from django.utils import timezone
|
|
9
9
|
|
|
10
10
|
from .const import BOOTSTRAP_BATCH_SIZE
|
|
11
11
|
from .utils import class_import_helper
|
|
@@ -197,7 +197,7 @@ def get_date():
|
|
|
197
197
|
This is the "getter" for default values of the ``AuditEvent.event_date``
|
|
198
198
|
field.
|
|
199
199
|
"""
|
|
200
|
-
return
|
|
200
|
+
return timezone.now()
|
|
201
201
|
|
|
202
202
|
|
|
203
203
|
class AuditEvent(models.Model):
|
|
File without changes
|
|
File without changes
|