Skip to content

Instantly share code, notes, and snippets.

View Font77's full-sized avatar
💭
4x4=10=2x8 , 2x5=A=10-6

vnti vnso Font77

💭
4x4=10=2x8 , 2x5=A=10-6
View GitHub Profile
class AuthorForm(ModelForm):
def __init__(self, *args, **kwargs):
self.helper = FormHelper()
self.helper.form_tag = False
self.helper.layout = Layout(
Field('name'),
)
super(AuthorForm, self).__init__(*args, **kwargs)
class Meta:
model = Author