Exception when creating test with existing name

Issue #324 resolved
Ben Earner created an issue

If I try and make a test with a name that already exists in the db e.g. "Dose" an exception is raised:

Exception Type: IntegrityError at /admin/qa/test/add/
Exception Value: duplicate key value violates unique constraint "qa_test_name_2a1f268a_uniq"
DETAIL:  Key (name)=(Dose) already exists.

I know users shouldn't be doing this, but might be good to avoid the exception if possible.

Comments (4)

  1. Log in to comment