How to get the list of the authenticated users?

前端 未结 4 749
温柔的废话
温柔的废话 2020-11-29 17:14

I would like to display the list of the authenticated users.

On the documentation: http://docs.djangoproject.com/en/dev/topics/auth/

class mo

4条回答
  •  醉酒成梦
    2020-11-29 18:00

    There is no easy, built-in way to do what you want that I know of. I'd try a combination of expiring sessions and filtering on last_login. Maybe even write a custom manager for that.

提交回复
热议问题