Created attachment 892448[details]
[test case]When create a case in the following case, system will go to 500 error page.
Description of problem:
as subject
Version-Release number of selected component (if applicable):
v3.8.7-4 on qa server.
How reproducible:
100%
Steps to Reproduce:
1.Enter a plan detail page.
https://tcms.app.qa.eng.nay.redhat.com/plan/10687/yang-qiu-ce-shi-plan-a#testcases
2.Click 'case-write new case' link to enter create case page.
3.Fill case info includes Summary|Component|Category|Setup|Actions|Expected Results|Breakdown|Priority|Default Tester|Product|Automated.
4.Click 'save and return to plan' btn.
Actual results:
system will go to 500 error page.
Expected results:
System save the new case right.
Additional info:
This issue caused by dirty data in db.
When query user by
User.objects.get(Q(email='qiyang') | Q(username='qiyang'))
there are Multiple objects returns.
While the dirty data caused by wrong config.