Skip to content

Instantly share code, notes, and snippets.

@idan
Created February 2, 2011 12:01
Show Gist options
  • Save idan/807590 to your computer and use it in GitHub Desktop.
Save idan/807590 to your computer and use it in GitHub Desktop.
EXAM_STATES = {
'pending': 000,
'in progress': 100,
'complete': 200,
'abandoned': 300,
'tampered': 400,
}
EXAM_STATES_CHOICES = tuple(sorted(
[(v,k.title()) for k,v in EXAM_STATES.iteritems()],
key=lambda state: state[0]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment