Skip to content

Instantly share code, notes, and snippets.

@mekhami
Created September 3, 2015 18:23
Show Gist options
  • Save mekhami/ab6ffc98a9f78472d286 to your computer and use it in GitHub Desktop.
Save mekhami/ab6ffc98a9f78472d286 to your computer and use it in GitHub Desktop.
class ServiceForm(forms.Form):
name = forms.CharField()
class PostgresForm(object):
password = forms.PasswordField(default=generated_password_thing())
whatever_other_field = forms.ThatField(default=blah)
def validate(self):
#custom validation rules
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment