From 42bd9fff111713f76f73c69f7c55b559ac076a73 Mon Sep 17 00:00:00 2001 From: Bo Shi Date: Sat, 21 Nov 2009 19:33:34 -0500 Subject: 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. --- djangopypi/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): class Meta: verbose_name = _(u"release") verbose_name_plural = _(u"releases") - unique_together = ("project", "version") + unique_together = ("project", "version", "platform", "distribution", "pyversion") def __unicode__(self): return u"%s (%s)" % (self.release_name, self.platform) -- cgit v1.2.3