Skip to content

Instantly share code, notes, and snippets.

@draggor
Created April 3, 2015 01:36
Show Gist options
  • Save draggor/a2bc012242accf34365b to your computer and use it in GitHub Desktop.
Save draggor/a2bc012242accf34365b to your computer and use it in GitHub Desktop.
Fields order example
# inherited from https://github.com/GoodCloud/django-zebra/blob/master/zebra/forms.py
class RegistrationForm(StripePaymentForm):
badgeName = forms.CharField(max_length=50, label="Badge Name:")
firstName = forms.CharField(max_length=50, label="First Name:")
lastName = forms.CharField(max_length=50, label="Last Name:")
class Meta:
fields = (
'badgeName',
'firstName',
'lastName',
'card_number',
'card_cvv',
'card_expiry_month',
'card_expiry_year',
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment