summaryrefslogtreecommitdiffstats
path: root/.emacs.d/snippets/python-mode/form
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-08-13 22:20:08 +0200
committerGravatar Tom Willemse2013-08-13 22:20:08 +0200
commitaaa9e1a953d8db0e974db9b09b2fe0b19751e3d9 (patch)
treee6c880a904ad0bdd2a697b4e4bea669ee0aa1499 /.emacs.d/snippets/python-mode/form
downloademacs-aaa9e1a953d8db0e974db9b09b2fe0b19751e3d9.tar.gz
emacs-aaa9e1a953d8db0e974db9b09b2fe0b19751e3d9.zip
Initial commit of my Emacs configuration in vcsh
Diffstat (limited to '.emacs.d/snippets/python-mode/form')
-rw-r--r--.emacs.d/snippets/python-mode/form9
1 files changed, 9 insertions, 0 deletions
diff --git a/.emacs.d/snippets/python-mode/form b/.emacs.d/snippets/python-mode/form
new file mode 100644
index 0000000..225d5e4
--- /dev/null
+++ b/.emacs.d/snippets/python-mode/form
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: Model Form
+# key: form
+# --
+class ${1:Model}Form(forms.ModelForm):
+ '''Form for the $1 model.'''
+
+ class Meta:
+ model = $1 \ No newline at end of file