django-easy-audit
django-easy-audit copied to clipboard
TransactionError
I literally have no time to chase this down ... moving to another "model audit" package. Sorry.
But, I added easyaudit, config'd settings to True for auth and model events. It never worked when I specified the list of models (e..g, ['app.model1', 'app.model2']) So, I left the list empty -- audit everything.
Quick test shows that easyaudit is picking up CREATIONS and DELETIONS. So, I alter an object in the admin interface to test CHANGED.
... boom: Cannot save the edited object due to TransactionError blah blah blah Atomic.
So, I turned OFF easyaudit in the settings.
... boom: Can save the altered object.
Sorry. I need to move on. I can't keep debugging this. I have to roll something simpler (shadow fields) or something. Deadline looming.
@soynatan I've also observed similar error. I had two models 1 CustomUser model 2 AnotherModel
AnotherModel cusom_id = models.CharField(_('cusom_id '), max_length=256, primary_key=True)
and class Meta: unique_together = ("user", "cusom_id ")
It haven't been possible to update or delete AnotherModel, so CustomUser model also have been affected with this error
@urdmg https://github.com/soynatan/django-easy-audit/issues/90