X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e15b74e6d8f736dfc8a6101e8b9c6583eebd7509..74f7584b18b4386433b4c02336f5adafcae530c5:/src/paypal/models.py diff --git a/src/paypal/models.py b/src/paypal/models.py index 2ce3635a7..3fc012ba7 100644 --- a/src/paypal/models.py +++ b/src/paypal/models.py @@ -13,7 +13,7 @@ class BillingPlan(models.Model): class BillingAgreement(models.Model): agreement_id = models.CharField(max_length=32) - user = models.ForeignKey(User, models.PROTECT) + schedule = models.ForeignKey('club.Schedule', models.PROTECT) plan = models.ForeignKey(BillingPlan, models.PROTECT) active = models.BooleanField(max_length=32) token = models.CharField(max_length=32)