anexia-it / django-rest-passwordreset

An extension of django rest framework, providing a configurable password reset strategy
BSD 3-Clause "New" or "Revised" License
419 stars 148 forks source link

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

Open fazialnjd opened 1 year ago

fazialnjd commented 1 year ago

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?