Skip to content

Commit 4f58295

Browse files
committed
feat: add default manager to AppModelMixin
1 parent 30fdae3 commit 4f58295

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/common/mixins/app_model_mixin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111

1212
class AppModelMixin(models.Model):
13+
objects = models.Manager()
14+
1315
create_time = models.DateTimeField(verbose_name="创建时间", auto_now_add=True, db_index=True)
1416
update_time = models.DateTimeField(verbose_name="修改时间", auto_now=True, db_index=True)
1517

0 commit comments

Comments
 (0)