Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
(1) Fixed Error in _subscription_status.html -- line 9 (issue#52)
Line 9 should be:
{% if request.user.customer.current_subscription.plan and request.user.customer.card_kind %}
Currently, it is as shown below:
{% with request.user.customer.current_subscription as subscription %}
{% if subscription %}
{% if subscription.status == "active" %}
(2) Line 6 in _change_plan_form.html - Need to change the word "Your" to "You" (issue #51)
(3) choices in FormPlan are not sorted in alpha order (issue #48)
I made these changes to forms.py
from django import forms
from payments.settings import PLAN_CHOICES
--> sorted_plan_choices = sorted(PLAN_CHOICES)
class PlanForm(forms.Form):
--> plan = forms.ChoiceField(choices=sorted_plan_choices+ [("", "-------")])
(4) Failed syncdb with django-jsonfield. Installed jsonfield and it worked (issue #45)
added jsonfield to setup.py instead of django-jsonfield
(5) plan_init does not accommodate Trials (issue #47)
added trial_period_days to plan_init command