表格.py
class PhoneForm(forms.ModelForm):
class Meta:
model = Phone_info
fields = ['name1','number1','name2','number2','name3','number3','emergency','emergency_number']
我需要验证以下字段:name1,name2,name3,emergency
对于空白空间。我用一种clean()
方法进行的其他验证。如何验证空白?