Princeton-CDH / mep-django

Shakespeare and Company Project - Python/Django web application
https://shakespeareandco.princeton.edu
Apache License 2.0
5 stars 1 forks source link

500 error when deleting address not associated with an account #726

Open rlskoeser opened 3 years ago

rlskoeser commented 3 years ago

Describe the bug Attempting to delete an address associated with a person and not an account through django admin causes a 500 error

The offending code is in the address deletion handler, which does not check if an associated account exists.

/var/www/shakespeareandco/mep/people/models.py in address_delete, line 369

rlskoeser commented 7 months ago

this is no longer a problem, looks like the code change that fixed it was made five years ago