rsinger86 / drf-flex-fields

Dynamically set fields and expand nested resources in Django REST Framework serializers.
MIT License
740 stars 61 forks source link

Feat: add check to convert from `django.HttpRequest` to `drf.Request` #134

Open Caiofcas opened 1 year ago

Caiofcas commented 1 year ago

Solves the issue mentioned in #128 . This can be a problem when testing with you use the django default RequestFactory for example. Since it's a simple fix it seems worth implementing.