Skip to content

Instantly share code, notes, and snippets.

@sivy
Created July 1, 2011 19:45
Show Gist options
  • Select an option

  • Save sivy/1059258 to your computer and use it in GitHub Desktop.

Select an option

Save sivy/1059258 to your computer and use it in GitHub Desktop.
class AppForm(ModelForm):
key_gen = models.BooleanField(default=False, verbose_name='Generate Key')
class Meta:
model = App
fields = ('name', 'remote_url', 'ssh_pub_key', 'config_cache', 'user', 'key_gen') # key_gen is just on the form
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment