diff options
author | Ask Solem <askh@modwheel.net> | 2009-03-20 14:40:56 +0100 |
---|---|---|
committer | Ask Solem Hoel <askh@opera.com> | 2009-03-20 14:40:56 +0100 |
commit | 61d945a363f2bd7f21459e91dffc545c18cfba51 (patch) | |
tree | ae477c7c2ffe3947c5ce4931c9072f292f16dd5b | |
parent | 88756f9b63bc034349f31a713310e5f6a2a4c109 (diff) | |
download | chishop-61d945a363f2bd7f21459e91dffc545c18cfba51.tar.bz2 chishop-61d945a363f2bd7f21459e91dffc545c18cfba51.tar.xz chishop-61d945a363f2bd7f21459e91dffc545c18cfba51.zip |
Also delete the previous release entry.
-rw-r--r-- | djangopypi/forms.py | 1 |
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 | ||