Esempio n. 1
0
 def clean_phone(self):
     self.cleaned_data['phone'] = self._clean_phone_number(self.cleaned_data['phone'])
     if self.instance:
         check_for_dupes(self.cleaned_data['phone'], contact=self.instance)
     else:
         check_for_dupes(self.cleaned_data['phone'])
     return self.cleaned_data['phone']
Esempio n. 2
0
 def clean_phone(self):
     self.cleaned_data['phone'] = intl_clean_phone_number(self.cleaned_data['phone'])
     if self.edit_user and self.edit_user.get_profile():
         check_for_dupes(self.cleaned_data['phone'], self.edit_user.get_profile().contact)
     else: 
         check_for_dupes(self.cleaned_data['phone'])
     return self.cleaned_data['phone']
Esempio n. 3
0
 def clean_phone(self):
     self.cleaned_data['phone'] = self._clean_phone_number(
         self.cleaned_data['phone'])
     if self.instance:
         check_for_dupes(self.cleaned_data['phone'], contact=self.instance)
     else:
         check_for_dupes(self.cleaned_data['phone'])
     return self.cleaned_data['phone']
Esempio n. 4
0
 def clean_phone(self):
     self.cleaned_data['phone'] = intl_clean_phone_number(
         self.cleaned_data['phone'])
     if self.edit_user and self.edit_user.get_profile():
         check_for_dupes(self.cleaned_data['phone'],
                         self.edit_user.get_profile().contact)
     else:
         check_for_dupes(self.cleaned_data['phone'])
     return self.cleaned_data['phone']
Esempio n. 5
0
 def clean_phone(self):
     self.cleaned_data['phone'] = intl_clean_phone_number(self.cleaned_data['phone'])
     check_for_dupes(self.cleaned_data['phone'])
     return self.cleaned_data['phone']
Esempio n. 6
0
 def clean_phone(self):
     self.cleaned_data['phone'] = intl_clean_phone_number(
         self.cleaned_data['phone'])
     check_for_dupes(self.cleaned_data['phone'])
     return self.cleaned_data['phone']