11 2022 档案
摘要:```python import datetime # 当前日期 def today_date(): return datetime.datetime.now().date() # 上周一 def last_monday(): return str(datetime.datetime.now() -
阅读全文
摘要:多对多字段: technology_user = fields.ManyToManyField(to="custom_auth.AdminUser",verbose_name="技术",blank=True,null=True) 放到list_display显示即可 # 多对多字段显示 def te
阅读全文