diff options
author | Bo Shi <bs1984@gmail.com> | 2009-11-21 19:33:34 -0500 |
---|---|---|
committer | Bo Shi <bs1984@gmail.com> | 2009-11-21 19:33:34 -0500 |
commit | 42bd9fff111713f76f73c69f7c55b559ac076a73 (patch) | |
tree | b4b6e0e034ed7049d062e13b32d27f28251fece0 | |
parent | ad7508b09659cea5526da8cffb5976faced8cc99 (diff) | |
download | chishop-42bd9fff111713f76f73c69f7c55b559ac076a73.tar.bz2 chishop-42bd9fff111713f76f73c69f7c55b559ac076a73.tar.xz chishop-42bd9fff111713f76f73c69f7c55b559ac076a73.zip |
Modify constraints to allow different types of uploads.
With existing constraint, one couldn't upload compiled binaries
targetted at specific platforms if the source for a particular version
was already released.
-rw-r--r-- | djangopypi/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/djangopypi/models.py b/djangopypi/models.py index 4d52974..195c491 100644 --- a/djangopypi/models.py +++ b/djangopypi/models.py | |||
@@ -96,7 +96,7 @@ class Release(models.Model): | |||
96 | class Meta: | 96 | class Meta: |
97 | verbose_name = _(u"release") | 97 | verbose_name = _(u"release") |
98 | verbose_name_plural = _(u"releases") | 98 | verbose_name_plural = _(u"releases") |
99 | unique_together = ("project", "version") | 99 | unique_together = ("project", "version", "platform", "distribution", "pyversion") |
100 | 100 | ||
101 | def __unicode__(self): | 101 | def __unicode__(self): |
102 | return u"%s (%s)" % (self.release_name, self.platform) | 102 | return u"%s (%s)" % (self.release_name, self.platform) |