From 204eb7e452853bfd921c1339761c97693d4335b3 Mon Sep 17 00:00:00 2001 From: Sigurd Gartmann Date: Sun, 12 Jun 2011 22:52:20 +0200 Subject: [PATCH] forms.py doesn't make it any simpler in this example --- fileupload/forms.py | 8 -------- fileupload/templates/fileupload/picture_form.html | 7 ++----- 2 files changed, 2 insertions(+), 13 deletions(-) delete mode 100644 fileupload/forms.py diff --git a/fileupload/forms.py b/fileupload/forms.py deleted file mode 100644 index b7c49fe..0000000 --- a/fileupload/forms.py +++ /dev/null @@ -1,8 +0,0 @@ -from django.forms import ModelForm -from fileupload.models import Picture - -class PictureForm(ModelForm): - - class Meta: - model = Picture - diff --git a/fileupload/templates/fileupload/picture_form.html b/fileupload/templates/fileupload/picture_form.html index 19c389e..3fc74cb 100644 --- a/fileupload/templates/fileupload/picture_form.html +++ b/fileupload/templates/fileupload/picture_form.html @@ -25,13 +25,10 @@
+ {% csrf_token %}