geeksforsocialchange / imok

A simple bot to support people doing risky activities
https://gfsc.studio/blog/2021/imok-is-launched/
MIT License
12 stars 1 forks source link

chore: handle error when admin attempts to delete a member with an active checkin #34

Closed kimadactyl closed 3 years ago

kimadactyl commented 3 years ago

Overview Deleting a member with an active checkin results in the following:

Deleting the member 'g' would result in deleting related objects, but your account doesn't have permission to delete the following types of objects:

    checkin

This should be clearer to non-admins

Acceptance Criteria

Questions/Assumptions

wheresalice commented 3 years ago

I don't believe there is a way of changing this. If we were to allow admins to delete member checkins then we wouldn't have this problem.

kimadactyl commented 3 years ago

Hmm. OK, let's go for that route then. It does seem a pretty severe limitation of Django admin to not be able to handle error messages tho?