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

fixed issues with configurable lookup #47

Closed J-F-Far closed 5 years ago

J-F-Far commented 5 years ago

The work performed in #5 by another developer appeared to be incomplete. In order to allow for a configurable lookup field, we have to allow the user to choose the serializer that will process that field as well, or else it will try to use the EmailSerializer to validate their chosen field.

I've implemented an example of how this could work. The user will have to add two settings values, DJANGO_REST_LOOKUP_FIELD and DJANGO_REST_LOOKUP_SERIALIZER