This reverts merge request !738 (merged)
The functionality causes problems with the SessionAuthentication and DRF.