summaryrefslogtreecommitdiff
path: root/archaeological_finds/wizards.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2013-08-25 17:35:32 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2013-08-25 17:35:32 +0200
commit2bae28290b1802d27a560da184476b83c711c5a1 (patch)
tree54218f760a4955d071f934a54811a2be9778894e /archaeological_finds/wizards.py
parent9658cb19f4a6066eb652e0e9ec04758053a5d67a (diff)
downloadIshtar-2bae28290b1802d27a560da184476b83c711c5a1.tar.bz2
Ishtar-2bae28290b1802d27a560da184476b83c711c5a1.zip
Add images to finds (refs #1314)
* an abstract model class has been defined to manage image and thumbnail with resizing on the fly * max size for images and thumbnails are set in project settings * new field have been added to Find model to save images and thumbnails * form and wizard of Find have been changed
Diffstat (limited to 'archaeological_finds/wizards.py')
-rw-r--r--archaeological_finds/wizards.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/archaeological_finds/wizards.py b/archaeological_finds/wizards.py
index 9effc3770..de16d2069 100644
--- a/archaeological_finds/wizards.py
+++ b/archaeological_finds/wizards.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-# Copyright (C) 2012 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet>
+# Copyright (C) 2012-2013 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
@@ -19,6 +19,7 @@
from django.conf import settings
from django.core.exceptions import ObjectDoesNotExist
+from django.core.files.storage import default_storage
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.utils.safestring import mark_safe
@@ -28,6 +29,7 @@ from ishtar_common.wizards import Wizard, DeletionWizard, SourceWizard
import models
class FindWizard(Wizard):
+ file_storage = default_storage
model = models.Find
def get_current_contextrecord(self):