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

9 lines
167 B
Text
Raw Permalink 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