Changeset 604420c in tailbone


Ignore:
Timestamp:
11/23/2022 12:27:09 PM (2 months ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
88aeaf3
Parents:
b64f6c7
Message:

Auto-format phone number when saving for contact records

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tailbone/views/master.py

    rb64f6c7 r604420c  
    38653865
    38663866    def objectify_contact(self, contact, data):
     3867        app = self.get_rattail_app()
    38673868
    38683869        if 'default_email' in data:
     
    38783879
    38793880        if 'default_phone' in data:
    3880             number = data['default_phone']
     3881            number = app.format_phone_number(data['default_phone'])
    38813882            if contact.phones:
    38823883                if number:
Note: See TracChangeset for help on using the changeset viewer.