2๐
I faced the same problem with Django==4.0.4
and djangorestframework==3.13.1
. I had new Django project with DRF and even though I did not register the model Token
it was showing up on the admin site.
When I click the Token
link in the admin, it was redirect me to /admin/authtoken/tokenproxy/
. So, instead of the Token
model, unregister the TokenProxy
model from admin site;
from rest_framework.authtoken.models import TokenProxy
admin.site.unregister(TokenProxy)
This solved my problem.
๐คuedemir
- [Answered ]-How to assign form id to Django ModelForm?
- [Answered ]-Django & Oracle DB lose contact
- [Answered ]-Returning queryset that uses a foreign key of a foreign key relationship
- [Answered ]-Django โ Geting fields by values_list in queryset
Source:stackexchange.com