legacy-dotfiles/.emacs.d/snippets/python-mode/form

9 lines
167 B
Text
Raw Normal View History

# -*- mode: snippet -*-
# name: Model Form
# key: form
# --
class ${1:Model}Form(forms.ModelForm):
'''Form for the $1 model.'''
class Meta:
model = $1