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