GoodCloud / django-zebra

Forms, widgets, template tags and examples that make Stripe + Django easier.
MIT License
193 stars 68 forks source link

Make templatetags zebra_card_form and zebra_head_and_stripe_key work in formwizard #17

Closed cro closed 8 years ago

cro commented 12 years ago

zebra_card_form and zebra_head_and_stripe_key need 'form' in the context. However, if a form is being used inside a formwizard, 'form' is not in the context. 'Wizard' is in the context, and 'form' is inside 'wizard.' This small patch checks for the existence of 'form' in 'wizard' and assigns zebra_form to it.