Skip to content

Instantly share code, notes, and snippets.

@timothyhahn
Created September 13, 2013 17:20
Show Gist options
  • Select an option

  • Save timothyhahn/6553490 to your computer and use it in GitHub Desktop.

Select an option

Save timothyhahn/6553490 to your computer and use it in GitHub Desktop.
type_list = list()
for type in location_type._asdict().values():
type_list.append(type.capitalize())
render_template('bla.html', location_types=type_list)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment