You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class DeferBinaryContentsManager(models.Manager):
def get_queryset(self):
return super().get_queryset().defer("binary_contents")
class FileUpload(models.Model):
objects = DeferBinaryContentsManager()
...
binary_contents = models.BinaryField(editable=True)
...log_delete method fails in _get_copy_with_python_typed_fields where value = getattr(instance_copy, field.name) calls an implicit refresh_from_db. Unfortunately, "exclude_fields": ["binary_contents"] in AUDITLOG_INCLUDE_TRACKING_MODELS does not help.
The text was updated successfully, but these errors were encountered:
With a model defined like this:
...
log_delete
method fails in_get_copy_with_python_typed_fields
wherevalue = getattr(instance_copy, field.name)
calls an implicitrefresh_from_db
. Unfortunately,"exclude_fields": ["binary_contents"]
inAUDITLOG_INCLUDE_TRACKING_MODELS
does not help.The text was updated successfully, but these errors were encountered: