From d8ebe4a5abd625b4606f1142a47b99c4c99fe5dd Mon Sep 17 00:00:00 2001
From: Gregory Koberger
Date: Fri, 03 Sep 2010 22:21:54 +0000
Subject: A few more updates to the Remove Icon update
---
diff --git a/apps/bandwagon/forms.py b/apps/bandwagon/forms.py
index 7ce311a..c9197f9 100644
--- a/apps/bandwagon/forms.py
+++ b/apps/bandwagon/forms.py
@@ -188,7 +188,6 @@ class CollectionForm(ModelForm):
if icon:
c.icontype = 'image/png'
-
c.save()
if icon:
@@ -207,8 +206,6 @@ class CollectionForm(ModelForm):
fh.close()
tasks.resize_icon.delay(tmp_destination, destination)
- c.save()
-
return c
diff --git a/apps/bandwagon/models.py b/apps/bandwagon/models.py
index 9678234..71759ef 100644
--- a/apps/bandwagon/models.py
+++ b/apps/bandwagon/models.py
@@ -1,6 +1,7 @@
-import collections, os
+import collections
from datetime import datetime
import hashlib
+import os
import time
import uuid
diff --git a/apps/bandwagon/tasks.py b/apps/bandwagon/tasks.py
index aafae43..69a2376 100644
--- a/apps/bandwagon/tasks.py
+++ b/apps/bandwagon/tasks.py
@@ -54,8 +54,7 @@ def delete_icon(dst):
log.info('[1@None] Deleting icon: %s.' % dst)
if not dst.startswith(settings.COLLECTIONS_ICON_PATH):
- log.error("Someone tried deleting something they shouldn't: %s"
- % dst)
+ log.error("Someone tried deleting something they shouldn't: %s" % dst)
return
try:
diff --git a/apps/bandwagon/templates/bandwagon/includes/addedit.html b/apps/bandwagon/templates/bandwagon/includes/addedit.html
index 5a47825..7f16c22 100644
--- a/apps/bandwagon/templates/bandwagon/includes/addedit.html
+++ b/apps/bandwagon/templates/bandwagon/includes/addedit.html
@@ -19,8 +19,8 @@
{% endif %}
- {{ _('(optional)') }}
- {{ form.description|safe }}
+
+ {{ form.description|safe }}
{{ form.icon|safe }}
@@ -29,7 +29,10 @@