Refactored some code

This commit is contained in:
PCoder 2017-08-18 01:49:27 +05:30
parent 7e1bfc9fab
commit 35736ae593
2 changed files with 2 additions and 3 deletions

View file

@ -90,7 +90,8 @@ class HostingOrder(AssignPermissionsMixin, models.Model):
def set_subscription_id(self, subscription_object):
"""
When creating a subscription, we have subscription id. We store this in the subscription_id field
When creating a Stripe subscription, we have subscription id. We store this in the subscription_id field.
This method sets the subscription id from subscription_object.
:param subscription_object: Stripe's subscription object
:return:

View file

@ -1,8 +1,6 @@
import logging
import stripe
from django.conf import settings
from datacenterlight.models import StripePlan
stripe.api_key = settings.STRIPE_API_PRIVATE_KEY