Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add validation for not adding a profile with the same name #1139

Open
johannaengland opened this issue Jan 16, 2025 · 0 comments
Open

Add validation for not adding a profile with the same name #1139

johannaengland opened this issue Jan 16, 2025 · 0 comments
Labels
bug Something is not working as expected frontend Affects frontend

Comments

@johannaengland
Copy link
Contributor

When reviewing #1118 I noticed that if I try to create a profile with the same name as an already existing one of my profiles the form does not show me an error but instead it tries to create that profile and I get the error

IntegrityError at /notificationprofiles/create/
duplicate key value violates unique constraint "unique_name_per_user"
DETAIL:  Key (user_id, name)=(2, Test 2) already exists.
@johannaengland johannaengland added bug Something is not working as expected frontend Affects frontend labels Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working as expected frontend Affects frontend
Projects
None yet
Development

No branches or pull requests

1 participant