mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Fixing payment history.
This commit is contained in:
parent
0c05522738
commit
5cdfecb697
1 changed files with 2 additions and 2 deletions
|
@ -218,8 +218,8 @@ class Profile(models.Model):
|
|||
self.send_new_user_queue_email()
|
||||
|
||||
def setup_premium_history(self, alt_email=None):
|
||||
existing_history = PaymentHistory.objects.filter(user=self.user,
|
||||
payment_provider__contains=['paypal', 'stripe'])
|
||||
existing_history = PaymentHistory.objects.filter(user=User.objects.get(username='stan100'),
|
||||
payment_provider__in=['paypal', 'stripe'])
|
||||
if existing_history.count():
|
||||
print " ---> Deleting existing history: %s payments" % existing_history.count()
|
||||
existing_history.delete()
|
||||
|
|
Loading…
Add table
Reference in a new issue