vvangelovski / django-audit-log

Audit log for your Django models
Other
232 stars 93 forks source link

Issue-58 When using UserLoggingMiddleware on a model that is also a c… #59

Open rogeremasse opened 6 years ago

rogeremasse commented 6 years ago

…hild model of a django-polymorphic, an ObjectDoesNotExist exception is raised in _disable_audit_log_managers and _enable_audit_log_managers as a side effect of the evaluation. While not the best fix, this patch is minimally invasive, very low risk, and solves the problem.