django-easy-audit icon indicating copy to clipboard operation
django-easy-audit copied to clipboard

TransactionError

Open joej opened this issue 6 years ago • 2 comments

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.

joej avatar Mar 31 '18 21:03 joej

@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 avatar May 30 '18 09:05 urdmg

@urdmg https://github.com/soynatan/django-easy-audit/issues/90

steverecio avatar Sep 16 '19 22:09 steverecio