anexia-it / django-rest-passwordreset

An extension of django rest framework, providing a configurable password reset strategy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot insert the value NULL into column 'id', table 'table.dbo.django_rest_passwordreset_resetpasswordtoken'; column does not allow nulls. INSERT fails.[BUG]

fazialnjd opened this issue · comments

Hi.
my url.py is:

from django.urls import path
urlpatterns = [
    path('api/password_reset/', include('django_rest_passwordreset.urls', namespace='password_reset')),
]

when I send post request to this url and send email ;
I get this error:

Cannot insert the value NULL into column 'id', table 'table.dbo.django_rest_passwordreset_resetpasswordtoken'; column does not allow nulls. INSERT fails.

How can I to fix this?