def clean_birth_date(self): """ 限定出生日期的范围: ``1800 ~ today `` """ birth_date = self.cleaned_data['birth_date'] return helpers.clean_birthday_rang(birth_date)
def clean_birth_date(self): birth_date = self.cleaned_data["birth_date"] return helpers.clean_birthday_rang(birth_date)