Remove machina, remove default cache config, add some upgrades and compatibility...
[wolnelektury.git] / src / paypal / rest.py
index 4d26972..11693cb 100644 (file)
@@ -117,11 +117,6 @@ def check_agreement(agreement_id):
         return a.state == 'Active'
 
 
         return a.state == 'Active'
 
 
-def user_is_subscribed(user):
-    agreements = BillingAgreement.objects.filter(user=user)
-    return any(agreement.check_agreement() for agreement in agreements)
-
-
 def execute_agreement(token):
     return paypalrestsdk.BillingAgreement.execute(token)
 
 def execute_agreement(token):
     return paypalrestsdk.BillingAgreement.execute(token)