<p>If you are using DRF and need to use the current user as a serializer field, use CurrentUserDefault as a default in a HiddenField #currentuserdefault #drf #django</p>
By clicking “Accept cookies”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage and assist in our marketing efforts. Check our privacy policies.
By clicking “Accept all”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage and assist in our marketing efforts. Check our privacy policies.