piepworks / cassettenest-roadmap

Public roadmap for Cassette Nest
0 stars 0 forks source link

Make email addresses unique #52

Closed trey closed 1 year ago

trey commented 3 years ago

Ger has two with the same address.

trey commented 3 years ago

Relevant: https://simpleisbetterthancomplex.com/article/2021/07/08/what-you-should-know-about-the-django-user-model.html#the-email-field-is-not-unique

trey commented 1 year ago

If you can’t replace the user model, enforce the validation on the forms used to create/update

Well, that sounds a bit tedious. And those forms are kind of built in, aren’t they?

Maybe I could do something here:

https://github.com/trey/cassettenest/blob/375c5275c5e26651b193faa2e6b51e6d4b030567/inventory/forms.py#L11-L17