Mercurial > public > madeira
changeset 64:e17fc6bbb9b0
For Django 1.4, got rid of verify_exists on URLFields.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 14 Apr 2012 13:51:02 -0500 (2012-04-14) |
parents | c723f8fa38cf |
children | cbbe7a275887 |
files | madeira/articles/models.py madeira/band/models.py madeira/gigs/models.py |
diffstat | 3 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/madeira/articles/models.py Sat Apr 14 13:33:06 2012 -0500 +++ b/madeira/articles/models.py Sat Apr 14 13:51:02 2012 -0500 @@ -11,7 +11,7 @@ text = models.TextField() source = models.TextField(help_text="Enter the source/author for the " "article, copyright info, etc; it will appear under the article.") - url = models.URLField(blank=True, verify_exists=False, + url = models.URLField(blank=True, help_text = 'Link to original article; optional') pdf = models.FileField(upload_to = 'pdf/articles/%Y/%m/%d/', blank=True, help_text="If you want to make the original article available as "
--- a/madeira/band/models.py Sat Apr 14 13:33:06 2012 -0500 +++ b/madeira/band/models.py Sat Apr 14 13:51:02 2012 -0500 @@ -42,7 +42,7 @@ class RecordLabel(models.Model): name = models.CharField(max_length=64) - url = models.URLField(verify_exists=False, max_length=200) + url = models.URLField(max_length=200) def __unicode__(self): return self.name @@ -87,7 +87,7 @@ class AlbumMerchant(models.Model): album = models.ForeignKey(Album, related_name='merchants') name = models.CharField(max_length=64) - url = models.URLField(verify_exists=False, max_length=200) + url = models.URLField(max_length=200) def __unicode__(self): return u'%s (%s)' % (self.name, self.album.title)
--- a/madeira/gigs/models.py Sat Apr 14 13:33:06 2012 -0500 +++ b/madeira/gigs/models.py Sat Apr 14 13:51:02 2012 -0500 @@ -49,7 +49,7 @@ class Venue(models.Model): name = models.CharField(max_length=50) - url = models.URLField(verify_exists=False, blank=True) + url = models.URLField(blank=True) address = models.CharField(max_length=255, blank=True) phone = PhoneNumberField(help_text="Format: XXX-XXX-XXXX", blank=True) city = models.ForeignKey(City) @@ -63,7 +63,7 @@ class Band(models.Model): name = models.CharField(max_length=64) - url = models.URLField(verify_exists=False, blank=True) + url = models.URLField(blank=True) class Meta: ordering = ['name'] @@ -75,7 +75,7 @@ class Gig(models.Model): title = models.CharField(max_length=50, blank=True, help_text="Optional; e.g. Some Festival") - url = models.URLField(verify_exists=False, blank=True, + url = models.URLField(blank=True, help_text="Optional; e.g. Some Festival's Website") date = models.DateField(db_index=True) time = models.TimeField(null=True, blank=True)