Query on building a business logic layer using django rest framework

2021-09-01 Thread Deepak Kotian
Hi, I am new to django rest framework and what I see that the CRUD operation on a database tables using model is easy and quick. Query: If I want to build a business logic with REST api implemented in django with multiple table hits in the same rest api end point and may create/update multiple or s

Re: Unexpected request.user when using @api_view with django_auth_ldap

2021-09-01 Thread Denis Nesterov
Update: I found the root cause. Apparently all my ldap users were not marked as active in django. Still, difference in behavior of normal views and API views regarding this type of users is kind of strange. Fernando, thank you for responding. However, I did try both session and token authentic