From a9af82b20e54436b07f9a654fe22f07d9ef4fed0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chriss=20Meji=CC=81a?= Date: Wed, 1 Jul 2015 16:53:10 -0600 Subject: [PATCH] Normalize code --- djstripe/settings.py | 2 +- djstripe/templatetags/djstripe_tags.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/djstripe/settings.py b/djstripe/settings.py index 01b96f86f0..b3e0d205cb 100644 --- a/djstripe/settings.py +++ b/djstripe/settings.py @@ -14,7 +14,7 @@ INVOICE_FROM_EMAIL = getattr(settings, "DJSTRIPE_INVOICE_FROM_EMAIL", "billing@example.com") 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'])) diff --git a/djstripe/templatetags/djstripe_tags.py b/djstripe/templatetags/djstripe_tags.py index 29b62fb825..410628fc76 100644 --- a/djstripe/templatetags/djstripe_tags.py +++ b/djstripe/templatetags/djstripe_tags.py @@ -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() @@ -31,7 +31,7 @@ def djstripe_plan_level(name): Use: {{ |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():