aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAsk Solem <askh@modwheel.net>2009-03-20 14:40:56 +0100
committerAsk Solem Hoel <askh@opera.com>2009-03-20 14:40:56 +0100
commit61d945a363f2bd7f21459e91dffc545c18cfba51 (patch)
treeae477c7c2ffe3947c5ce4931c9072f292f16dd5b
parent88756f9b63bc034349f31a713310e5f6a2a4c109 (diff)
downloadchishop-61d945a363f2bd7f21459e91dffc545c18cfba51.tar.bz2
chishop-61d945a363f2bd7f21459e91dffc545c18cfba51.tar.xz
chishop-61d945a363f2bd7f21459e91dffc545c18cfba51.zip
Also delete the previous release entry.
-rw-r--r--djangopypi/forms.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/djangopypi/forms.py b/djangopypi/forms.py
index ccea903..3217e7c 100644
--- a/djangopypi/forms.py
+++ b/djangopypi/forms.py
@@ -68,6 +68,7 @@ class ProjectRegisterForm(forms.Form):
68 platform=platform, project=project) 68 platform=platform, project=project)
69 if os.path.exists(previous_entry.distribution.path): 69 if os.path.exists(previous_entry.distribution.path):
70 os.remove(previous_entry.distribution.path) 70 os.remove(previous_entry.distribution.path)
71 previous_entry.delete()
71 except Release.DoesNotExist: 72 except Release.DoesNotExist:
72 pass 73 pass
73 74