You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made a PR for this error, it's because some imports of exceptions are missing and the error messages indicates that they are missing, until approval you can just import the missing constant and class with:
from django.db import IntegrityError
from rest_framework.status import HTTP_500_INTERNAL_SERVER_ERROR
Describe the bug
Exception type 'IntegrityError' is not found
To Reproduce
Steps to reproduce the behavior:
{
"detail": [
"name 'IntegrityError' is not defined"
]
}
Expected behavior
'IntegrityError' list need to import properly.
The text was updated successfully, but these errors were encountered: