more_improvements

This commit is contained in:
Arjuna Del Toso 2024-10-28 23:05:41 -04:00
parent 1a207b8669
commit 9ebdb63976
2 changed files with 7 additions and 3 deletions

View file

@ -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] = (

View file

@ -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",