def clean_username(self): final_username = self.data.get('email').split('@')[0] final_username = _get_unique_username(username=final_username) logger.info('Username %s available' % final_username) return final_username