Fix bug where IntegrityErrors for DELETE were not being processed; add basic test for admin