umutbozkurt/django-rest-framework-mongoengine

Catch NotUniqueError

Vayel opened this issue · 1 comments

Vayel commented

When an index is created on a model, Mongoengine may raise NotUniqueError. Currently, the exception is not caught. It should be and the API should return with the 400 code.