(self, phone_numbers)
The first item in 'phone_numbers' will be the default
The first item in 'phone_numbers' will be the default
The first item in phone_numbers will be the default
def update_phone_numbers(self, phone_numbers):
        """
        The first item in 'phone_numbers' will be the default
        """
        old_user_phone_numbers = self.user.phone_numbers
        fmt_phone_numbers = [_fmt_phone(n) for n in phone_numbers]

        if any(fmt_phone_numbers):
            self.user.set_phone_numbers(fmt_phone_numbers, default_number=fmt_phone_numbers[0])
        else:
            self.user.set_phone_numbers([])

        self._log_phone_number_changes(old_user_phone_numbers, fmt_phone_numbers)
def update_phone_numbers ( self , phone_numbers ) : old_user_phone_numbers = self . user . phone_numbers fmt_phone_numbers = [ _fmt_phone ( n ) for n in phone_numbers ] if any ( fmt_phone_numbers ) : self . user . set_phone_numbers ( fmt_phone_numbers , default_number = fmt_phone_numbers [ 0 ] ) else : self . user . set_phone_numbers ( [ ] ) self . _log_phone_number_changes ( old_user_phone_numbers , fmt_phone_numbers )