Authentication fail

I tried using authentication but there was an issue.
I got this issue when I started my server:

<class ‘rest_framework.authtoken.admin.TokenAdmin’>: (admin.E039) An admin for model “User” has to be registered to be referenced by TokenAdmin.autocomplete_fields.

How to solve it?
Thank you!

Hi. Are you using DRF version 3.15.0?

If so, your problem is probably related to this issue. You should consider upgrading to 3.15.1 to solve the problem.

1 Like

Yes. I am using DRF 3.15.0
Thank you!