django - 如何获取注册日期?

标签 django django-authentication

如何获取注册日期?这个字段的名称是什么?我使用 Django 注册。我在文档中没有看到这个

User.objects.filter(date_of_registration_field__lt = my_date)

最佳答案

date_joined

A datetime designating when the account was created. Is set to the current date/time by default when the account is created.

关于django - 如何获取注册日期?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14769876/

相关文章:

django - ModelForm 中的 DurationField 格式

python - Django + SQLite + ForeignKey ('self' ) = 迁移失败

python - 上下文处理器,传递一个不存在的 session

django - Varnish 是否与 Django Csrf 保护兼容?

python - AUTH_USER_MODEL 指尚未安装的型号

Django 身份验证

Python:获取用户查看页面的Windows用户名?

python - django 中非常简单的用户输入

python - 如何在 Django 中为自定义用户添加组?

Django - 覆盖管理站点的登录表单