vchaptsev / cookiecutter-django-vue

Cookiecutter Django Vue is a template for Django-Vue projects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Django integrity error

io-ma opened this issue · comments

commented

Hi,
I am trying to build a signup page in the frontend.
Whenever I call the register endpoint I get this error:
django.db.utils.IntegrityError: null value in column "password" violates not-null constraint
DETAIL: Failing row contains (92, null, null, f, null, null, null, , 7421e702-62e2-4402-a5f8-29e39664d3b0, f, t, f, 2019-09-28:22:38.512193+00).
I'd love to prevent this , but don't know if I am doing something wrong in the frontend , or is there something wrong in the backend.
I just call the postRegister function in my methods, on form submit.