Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

管理员修改话题信息时,话题创建时间变成了修改时间 #1

Open
CNBorn opened this issue Oct 30, 2010 · 2 comments
Open
Labels

Comments

@CNBorn
Copy link
Member

CNBorn commented Oct 30, 2010

管理员修改话题信息时,话题创建时间变成了修改时间

@kxxoling
Copy link

kxxoling commented Jan 8, 2015

看起来是这行代码:https://github.com/openparty/openparty/blob/master/apps/core/models/topic.py#L31
把 auto_now 设置为 False 应该就可以了。
Django 文档:https://docs.djangoproject.com/en/1.7/ref/models/fields/#datefield

@kxxoling
Copy link

kxxoling commented Jan 8, 2015

另外,根据 Django 文档,设置了 auto_now 或者 auto_now_add 会默认覆盖 editable 为 False, blank 为 True。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants