1
0
Fork 0
emacs-config/oni-python/snippets/python-mode/form

9 lines
167 B
Text
Raw Permalink Normal View History

2019-08-28 09:06:55 +02:00
# -*- mode: snippet -*-
# name: Model Form
# key: form
# --
class ${1:Model}Form(forms.ModelForm):
'''Form for the $1 model.'''
class Meta:
model = $1