anexia-it / django-rest-passwordreset

An extension of django rest framework, providing a configurable password reset strategy
BSD 3-Clause "New" or "Revised" License
419 stars 148 forks source link

Unable to unregister django-rest-passwordreset from admin panel #87

Closed MohamedMegid closed 4 years ago

MohamedMegid commented 4 years ago

How to unregister django-rest-passwordreset or applying permissions not to add new forget password row in database using the admin panel or change the list of forgotable passwords (in django admin panel).

MohamedMegid commented 4 years ago

I found the solution:

from django_rest_passwordreset.models import ResetPasswordToken

admin.site.unregister(ResetPasswordToken)

Thanks