2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-17 17:47:13 +00:00

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...
This commit is contained in:
expoonserver
2018-06-17 02:24:00 +01:00
parent 94c232c775
commit c3300f7c96
2 changed files with 24 additions and 24 deletions

View File

@@ -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,