diff options
author | expoonserver <devnull@localhost> | 2018-06-17 02:24:00 +0100 |
---|---|---|
committer | expoonserver <devnull@localhost> | 2018-06-17 02:24:00 +0100 |
commit | c3300f7c9685b89a8593640a73d74cc849b79428 (patch) | |
tree | 627fcb2540344680be119b9a697e05b681a8b466 /core/views_other.py | |
parent | 94c232c7750721b0603906c9159cb98c0f164854 (diff) | |
download | troggle-c3300f7c9685b89a8593640a73d74cc849b79428.tar.gz troggle-c3300f7c9685b89a8593640a73d74cc849b79428.tar.bz2 troggle-c3300f7c9685b89a8593640a73d74cc849b79428.zip |
FileUploadForm does not work with django 1.7.
It tries to use database during class initialisation.
removed it for now - not sure if it's important...
Diffstat (limited to 'core/views_other.py')
-rw-r--r-- | core/views_other.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/views_other.py b/core/views_other.py index 67cd01a..f9a4661 100644 --- a/core/views_other.py +++ b/core/views_other.py @@ -1,5 +1,5 @@ from troggle.core.models import Cave, Expedition, Person, LogbookEntry, PersonExpedition, PersonTrip, DPhoto, QM -from troggle.core.forms import UploadFileForm +#from troggle.core.forms import UploadFileForm from django.conf import settings from django import forms from django.template import loader, Context @@ -259,8 +259,8 @@ def newFile(request, pslug = None): # "TU": py.time_underground, # "author": py.is_logbook_entry_author} # for py in previouslbe.persontrip_set.all()]) - else: - fileform = UploadFileForm() # An unbound form +# else: +# fileform = UploadFileForm() # An unbound form return render_with_context(request, 'editfile.html', { 'fileForm': fileform, |