Skip to content

Instantly share code, notes, and snippets.

@MickaelCruzDB
Created June 17, 2015 10:54
Show Gist options
  • Save MickaelCruzDB/b2dc4b0a063d7faf4fe9 to your computer and use it in GitHub Desktop.
Save MickaelCruzDB/b2dc4b0a063d7faf4fe9 to your computer and use it in GitHub Desktop.
from django import forms
TABLE_CAT = (
(GASOLINE_ENGINES, 'Gasoline Engines'),
(DIESEL_ENGINES, 'Diesel Engines'),
(EXHAUST_AFTERTREATMENT, 'Exhaust Aftertreatment'),
(ELECTRIFICATION, 'Electrification'),
(DRIVETRAIN_EFFICIENCY, 'Drivetrain Effieciency'),
)
class TableCatForm(forms.Form):
table_category = forms.MultipleChoiceField(choices=TABLE_CAT)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment