mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
Merge branch 'master' into dashboard3
* master: Use email if username doesnt work.
This commit is contained in:
commit
6b7ccbb335
1 changed files with 2 additions and 0 deletions
|
@ -488,6 +488,8 @@ class Profile(models.Model):
|
|||
@property
|
||||
def latest_paypal_email(self):
|
||||
ipn = PayPalIPN.objects.filter(custom=self.user.username)
|
||||
if not len(ipn):
|
||||
ipn = PayPalIPN.objects.filter(payer_email=self.user.email)
|
||||
if not len(ipn):
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue