-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
A user with that username already exists, when create a new project #3818
Comments
Hi @CvHadesSun Try to omit |
Yes, I want to omit two fields, but I set the owner and assignee blank, and get the error:
How should I do to omit two fields and create a new project? |
ok, I understand. Thanks for your reply. |
I hope you managed to the issue. I will close it. Do not hesitate to reopen if you still have questions |
My actions before raising this issue
Expected Behaviour
A project should be created, owned by the provided owner and assigned to the provided assignee.
I am runing the `python manage.py runserver `, and using the REST API `create` to create a new project. the `owner` and `assignee` name are required. and I assign the exists username info, the validation error is : "A user with that username already exists.", but i assign the no exists username, i meet other error: Cannot assign "OrderedDict([('username', 'xxx'), ('first_name', ''), ('last_name', '')])": "Project.assignee" must be a "User" instance. ### Current BehaviourPossible Solution
Steps to Reproduce (for bugs)
2.install requirement python env.
Context
I want to know: how can I create a new project using rest-framework api?
Your Environment
git log -1
):docker version
(e.g. Docker 17.0.05):Logs from `cvat` container
Next steps
You may join our Gitter channel for community support.
The text was updated successfully, but these errors were encountered: