mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
feat: add default manager to AppModelMixin
This commit is contained in:
parent
30fdae34c6
commit
4f58295d39
|
|
@ -10,6 +10,8 @@ from django.db import models
|
|||
|
||||
|
||||
class AppModelMixin(models.Model):
|
||||
objects = models.Manager()
|
||||
|
||||
create_time = models.DateTimeField(verbose_name="创建时间", auto_now_add=True, db_index=True)
|
||||
update_time = models.DateTimeField(verbose_name="修改时间", auto_now=True, db_index=True)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue