dotfiles/emacs/.emacs.d/snippets/python-mode/form
2016-11-24 21:41:10 +01:00

9 lines
No EOL
167 B
Text

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