简体   繁体   中英

How to disable users from admin panel and django?

I know they provide add, update, delete and view. But I want the users' data to not get deleted and disable user so they cannot use website until enabled again.

The django admin provides an is_active checkbox. 在此处输入图像描述

Uncheck the is_active checkbox and save. Django does not log in users whose is_active value is False.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM