Skip to content

Commit

Permalink
Normalize code
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissmejia committed Jul 1, 2015
1 parent 9a21a73 commit a9af82b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion djstripe/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

INVOICE_FROM_EMAIL = getattr(settings, "DJSTRIPE_INVOICE_FROM_EMAIL", "[email protected]")
PAYMENTS_PLANS = getattr(settings, "DJSTRIPE_PLANS", {})
HIERARCHY_PLANS = getattr(settings, "DJSTRIPE_HIERARCHY_PLANS", {})
DJSTRIPE_PLAN_HIERARCHY = getattr(settings, "DJSTRIPE_HIERARCHY_PLANS", {})

# Sort the PAYMENT_PLANS dictionary ascending by price.
PAYMENT_PLANS = OrderedDict(sorted(PAYMENTS_PLANS.items(), key=lambda t: t[1]['price']))
Expand Down
4 changes: 2 additions & 2 deletions djstripe/templatetags/djstripe_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from __future__ import division

from django.template import Library
from ..settings import HIERARCHY_PLANS
from ..settings import DJSTRIPE_PLAN_HIERARCHY

register = Library()

Expand Down Expand Up @@ -31,7 +31,7 @@ def djstripe_plan_level(name):
Use: {{ <plan_name>|djstripe_plan_level }}
Custom settings setup need it, please see the documentation for details.
Note: Custom settings setup is needed, please see the documentation for details.
"""
level = -1
for config_level in HIERARCHY_PLANS.values():
Expand Down

0 comments on commit a9af82b

Please sign in to comment.