From 2d4b29e6d9dc29424c59a16f6c6fdd688742b879 Mon Sep 17 00:00:00 2001
From: Sachi King <nakato@nakato.io>
Date: Mon, 24 Apr 2017 23:09:21 +1000
Subject: [PATCH] Add a CSS class on required fields labels

This makes it possible to add a ' *' required notifier to labels without
needing a bunch of custom form code in templates.
---
 registripe/forms.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/registripe/forms.py b/registripe/forms.py
index 91370957..3816c5de 100644
--- a/registripe/forms.py
+++ b/registripe/forms.py
@@ -62,6 +62,8 @@ class StripeWidgetProxy(widgets.Widget):
 
 class CreditCardForm(forms.Form):
 
+    required_css_class = 'label-required'
+
     def _media(self):
         js = (
             'https://js.stripe.com/v2/',
@@ -142,6 +144,8 @@ class CreditCardForm(forms.Form):
 
 class StripeRefundForm(forms.Form):
 
+    required_css_class = 'label-required'
+
     def __init__(self, *args, **kwargs):
         '''