Re: Stopping request when exception occurs (admin interface)

2014-11-26 Thread Collin Anderson
Hi, Peaking at the code... https://github.com/django/django/blob/cc870b8ef5e3464c6f051e3ef0a25dfc4b597452/django/contrib/admin/options.py#L1430 It looks like it would also log a successful change in the history. Is it possible to detect the change during the validation? Looks like you could

Stopping request when exception occurs (admin interface)

2014-11-26 Thread ian . k
Hi there, Hopefully an easy question. I've overridden save_model() in my admin page, and I'm wrapping my obj.save() call in a try/catch so that I can catch a RecordModifiedError. def save_model(self, request, obj, form, change): from concurrency.exceptions import