Changeset 409cbc2 in rattail
- Timestamp:
- 08/02/2020 07:10:10 PM (3 years ago)
- Branches:
- master
- Children:
- 0590399
- Parents:
- 42d20a7
- git-author:
- Lance Edgar <lance@…> (08/02/2020 07:09:34 PM)
- git-committer:
- Lance Edgar <lance@…> (08/02/2020 07:10:10 PM)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rattail/db/model/contact.py
r42d20a7 r409cbc2 148 148 _contact_phone_model = None 149 149 _contact_address_model = None 150 151 def first_email(self, **kwargs): 152 """ 153 Return the first available email record for the contact. 154 """ 155 if self.emails: 156 return self.emails[0] 150 157 151 158 def make_email(self, **kwargs): … … 199 206 session.flush() 200 207 208 def first_phone(self, **kwargs): 209 """ 210 Return the first available phone record for the contact. 211 """ 212 if self.phones: 213 return self.phones[0] 214 201 215 def make_phone(self, **kwargs): 202 216 """ … … 251 265 session.flush() 252 266 267 def first_address(self, **kwargs): 268 """ 269 Return the first available address record for the contact. 270 """ 271 if self.addresses: 272 return self.addresses[0] 273 253 274 def make_address(self, **kwargs): 254 275 """
Note: See TracChangeset
for help on using the changeset viewer.