class Bla(Case):
def __init__(self, model, field, condition=None, then=None, **lookups):
la = model._meta.get_field(field).__str__
返回
<bound method Field.__str__ of <django.db.models.fields.DateField: date>>
如何获取具体年份的日期字段的值?
class Bla(Case):
def __init__(self, model, field, condition=None, then=None, **lookups):
la = model._meta.get_field(field).__str__
返回
<bound method Field.__str__ of <django.db.models.fields.DateField: date>>
如何获取具体年份的日期字段的值?