From ac701126231bc4390050105626d374d2a9936d8b Mon Sep 17 00:00:00 2001 From: Michael Richardson Date: Thu, 18 Mar 2010 12:44:20 -0700 Subject: Switched download_url to be a CharField instead of a URLField. download_url can be an FTP URL (for instance, python-memcached does this) and since Django doesn't validate FTP URLs on the URLField in models, it's a 400. --- djangopypi/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangopypi/models.py b/djangopypi/models.py index 195c491..28c7bc8 100644 --- a/djangopypi/models.py +++ b/djangopypi/models.py @@ -52,7 +52,7 @@ class Project(models.Model): metadata_version = models.CharField(max_length=64, default=1.0) author = models.CharField(max_length=128, blank=True) home_page = models.URLField(verify_exists=False, blank=True, null=True) - download_url = models.URLField(verify_exists=False, blank=True, null=True) + download_url = models.CharField(max_length=200, blank=True, null=True) summary = models.TextField(blank=True) description = models.TextField(blank=True) author_email = models.CharField(max_length=255, blank=True) -- cgit v1.2.3