diff options
author | Michael Richardson <michael@michaelrichardson.me> | 2010-03-18 12:44:20 -0700 |
---|---|---|
committer | Michael Richardson <michael@michaelrichardson.me> | 2010-03-18 12:44:20 -0700 |
commit | ac701126231bc4390050105626d374d2a9936d8b (patch) | |
tree | b851e9452d32fcc70b849187c237263b33a75080 | |
parent | 3c63d92763292ade8ef0af1ee61eae5cc987ce60 (diff) | |
download | chishop-ac701126231bc4390050105626d374d2a9936d8b.tar.bz2 chishop-ac701126231bc4390050105626d374d2a9936d8b.tar.xz chishop-ac701126231bc4390050105626d374d2a9936d8b.zip |
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.
-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 195c491..28c7bc8 100644 --- a/djangopypi/models.py +++ b/djangopypi/models.py | |||
@@ -52,7 +52,7 @@ class Project(models.Model): | |||
52 | metadata_version = models.CharField(max_length=64, default=1.0) | 52 | metadata_version = models.CharField(max_length=64, default=1.0) |
53 | author = models.CharField(max_length=128, blank=True) | 53 | author = models.CharField(max_length=128, blank=True) |
54 | home_page = models.URLField(verify_exists=False, blank=True, null=True) | 54 | home_page = models.URLField(verify_exists=False, blank=True, null=True) |
55 | download_url = models.URLField(verify_exists=False, blank=True, null=True) | 55 | download_url = models.CharField(max_length=200, blank=True, null=True) |
56 | summary = models.TextField(blank=True) | 56 | summary = models.TextField(blank=True) |
57 | description = models.TextField(blank=True) | 57 | description = models.TextField(blank=True) |
58 | author_email = models.CharField(max_length=255, blank=True) | 58 | author_email = models.CharField(max_length=255, blank=True) |