mirror of
https://github.com/jazzband/django-auditlog.git
synced 2026-03-16 22:20:26 +00:00
more_improvements
This commit is contained in:
parent
1a207b8669
commit
9ebdb63976
2 changed files with 7 additions and 3 deletions
|
|
@ -206,10 +206,10 @@ def model_instance_diff(
|
|||
|
||||
if old_value != new_value:
|
||||
if field.name in custom_fields_callbacks:
|
||||
old_value = " FIELD TOO LARGE "
|
||||
new_value = custom_fields_callbacks[field.name](
|
||||
old_value, new_value
|
||||
json.dumps(old_value), json.dumps(new_value)
|
||||
)
|
||||
old_value = " FIELD TOO LARGE "
|
||||
diff[field.name] = (smart_str(old_value), smart_str(new_value))
|
||||
elif model_fields and field.name in model_fields["mask_fields"]:
|
||||
diff[field.name] = (
|
||||
|
|
|
|||
6
setup.py
6
setup.py
|
|
@ -28,7 +28,11 @@ setup(
|
|||
long_description=long_description,
|
||||
long_description_content_type="text/markdown",
|
||||
python_requires=">=3.8",
|
||||
install_requires=["Django>=3.2", "python-dateutil>=2.7.0"],
|
||||
install_requires=[
|
||||
"Django>=3.2",
|
||||
"python-dateutil>=2.7.0",
|
||||
"deepdiff==7.0.*",
|
||||
],
|
||||
zip_safe=False,
|
||||
classifiers=[
|
||||
"Programming Language :: Python :: 3",
|
||||
|
|
|
|||
Loading…
Reference in a new issue