nycmeshnet / meshdb

A convenient, stable, and sane database for tracking Members and Nodes for use with robots and humans
https://db.mesh.nycmesh.net
MIT License
8 stars 13 forks source link

Refactor join form to use transactions instead of try/except #459

Open Andrew-Dickinson opened 1 month ago

Andrew-Dickinson commented 1 month ago

Exception handling on join form submission should use Django's feature for this: https://docs.djangoproject.com/en/5.0/topics/db/transactions/

Whoops

Also add tests for those intermediate failure cases if they don't already exist