Skip to content

Commit

Permalink
Merge pull request #829 from xzzy/master
Browse files Browse the repository at this point in the history
Debug Cleanup
  • Loading branch information
xzzy authored Oct 5, 2020
2 parents 2ca18a1 + d36ee03 commit 2493673
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ledger/accounts/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,20 +320,17 @@ def clean(self):
post_clean.send(sender=self.__class__, instance=self)

def save(self, *args, **kwargs):
print ("SAVE")
if not self.email:
self.email = self.get_dummy_email()
elif in_dbca_domain(self):
# checks and updates department user details from address book after every login
user_details = get_department_user_compact(self.email)
print ("DBCA")
if user_details:
self.phone_number = user_details.get('telephone')
self.mobile_number = user_details.get('mobile_phone')
self.title = user_details.get('title')
self.fax_number = user_details.get('org_unit__location__fax')
self.is_staff = True
print ("TT")
self.email = self.email.lower()
super(EmailUser, self).save(*args, **kwargs)

Expand Down

0 comments on commit 2493673

Please sign in to comment.