summaryrefslogtreecommitdiff
path: root/archaeological_finds/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_finds/models.py')
-rw-r--r--archaeological_finds/models.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/archaeological_finds/models.py b/archaeological_finds/models.py
index 70e0156fc..e5d63b751 100644
--- a/archaeological_finds/models.py
+++ b/archaeological_finds/models.py
@@ -372,13 +372,7 @@ class Find(BaseHistorizedItem, ImageModel, OwnPerms, ShortMenuItem):
null=True)
history = HistoricalRecords()
BASKET_MODEL = FindBasket
-
- def __init__(self, *args, **kwargs):
- super(Find, self).__init__(*args, **kwargs)
- image = self._meta.get_field_by_name("image")[0]
- image.upload_to = "finds/"
- thumbnail = self._meta.get_field_by_name("thumbnail")[0]
- thumbnail.upload_to = "finds/thumbs/"
+ IMAGE_PREFIX = 'finds/'
class Meta:
verbose_name = _(u"Find")