def clean(self): super(Page, self).clean() if self.phone: self.phone = correct_mobile(self.phone, self.country) none_to_blank(self, [ 'about', 'description', 'phone', 'founded', 'impressum', 'overview', 'mission', 'general_info' ])
def clean(self): # Super clean super(Shout, self).clean() # Mobile if self.mobile: mobile_shout_country = correct_mobile(self.mobile, self.country) mobile_owner_country = correct_mobile(self.mobile, self.owner.ap.country) self.mobile = mobile_shout_country or mobile_owner_country none_to_blank(self, ['mobile'])
def clean(self): none_to_blank(self, ['name', 'description'])
def clean(self): none_to_blank(self, ['text'])
def clean(self): super(Profile, self).clean() if self.mobile: self.mobile = correct_mobile(self.mobile, self.country) none_to_blank(self, ['gender', 'bio', 'mobile'])
def clean(self): none_to_blank(self, ['image', 'cover', 'website'])