コード例 #1
0
ファイル: forms.py プロジェクト: nuannuanwu/weixiao
 def clean_birth_date(self):
     """
     限定出生日期的范围: ``1800 ~ today ``
     """
     birth_date = self.cleaned_data['birth_date']
     return helpers.clean_birthday_rang(birth_date)
コード例 #2
0
ファイル: forms.py プロジェクト: nuannuanwu/weixiao
 def clean_birth_date(self):
     birth_date = self.cleaned_data["birth_date"]
     return helpers.clean_birthday_rang(birth_date)