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
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