Mercurial > public > sg101
changeset 572:368d731af479
For Django 1.4, remove verify_exists from model field definitions.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 02 May 2012 20:51:38 -0500 |
parents | c2ba9c3395da |
children | bcc4e8cf841b |
files | gpp/gcalendar/models.py gpp/oembed/models.py gpp/podcast/models.py gpp/weblinks/models.py gpp/ygroup/models.py |
diffstat | 5 files changed, 8 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/gpp/gcalendar/models.py Wed May 02 20:43:16 2012 -0500 +++ b/gpp/gcalendar/models.py Wed May 02 20:51:38 2012 -0500 @@ -57,8 +57,7 @@ html = models.TextField(blank=True) date_submitted = models.DateTimeField(auto_now_add=True) google_id = models.CharField(max_length=255, blank=True) - google_url = models.URLField(verify_exists=False, max_length=255, - blank=True) + google_url = models.URLField(max_length=255, blank=True) status = models.SmallIntegerField(choices=STATUS_CHOICES, default=NEW, db_index=True) create_forum_thread = models.BooleanField(default=False)
--- a/gpp/oembed/models.py Wed May 02 20:43:16 2012 -0500 +++ b/gpp/oembed/models.py Wed May 02 20:51:38 2012 -0500 @@ -17,8 +17,7 @@ ) name = models.CharField(max_length=128) - api_endpoint = models.URLField(max_length=255, verify_exists=False, - verbose_name='API endpoint') + api_endpoint = models.URLField(max_length=255, verbose_name='API endpoint') url_regex = models.CharField(max_length=255, verbose_name='URL regex') format = models.IntegerField(choices=FORMAT_CHOICES) @@ -39,7 +38,7 @@ (RICH, "rich"), ) - url = models.URLField(max_length=255, verify_exists=False, db_index=True) + url = models.URLField(max_length=255, db_index=True) type = models.IntegerField(choices=MEDIA_TYPE_CHOICES) title = models.CharField(max_length=255, blank=True, default='') width = models.IntegerField()
--- a/gpp/podcast/models.py Wed May 02 20:43:16 2012 -0500 +++ b/gpp/podcast/models.py Wed May 02 20:51:38 2012 -0500 @@ -18,7 +18,7 @@ """Model to represent the Channel properties""" title = models.CharField(max_length=255) - link = models.URLField(verify_exists=False) + link = models.URLField() language = models.CharField(max_length=16) copyright = models.CharField(max_length=255) subtitle = models.CharField(max_length=255) @@ -42,8 +42,8 @@ author = models.CharField(max_length=255) subtitle = models.CharField(max_length=255) summary = models.TextField() - enclosure_url = models.URLField(verify_exists=False) - alt_enclosure_url = models.URLField(verify_exists=False, blank=True) + enclosure_url = models.URLField() + alt_enclosure_url = models.URLField(blank=True) enclosure_length = models.IntegerField() enclosure_type = models.CharField(max_length=32) guid = models.CharField(max_length=255)
--- a/gpp/weblinks/models.py Wed May 02 20:43:16 2012 -0500 +++ b/gpp/weblinks/models.py Wed May 02 20:51:38 2012 -0500 @@ -33,7 +33,7 @@ """Abstract model to aggregate common fields of a web link.""" category = models.ForeignKey(Category) title = models.CharField(max_length=128) - url = models.URLField(verify_exists=False, db_index=True) + url = models.URLField(db_index=True) description = models.TextField(blank=True) user = models.ForeignKey(User) date_added = models.DateTimeField(db_index=True)
--- a/gpp/ygroup/models.py Wed May 02 20:43:16 2012 -0500 +++ b/gpp/ygroup/models.py Wed May 02 20:51:38 2012 -0500 @@ -34,7 +34,7 @@ msg = models.TextField() # precomputed URL to this post in the parent thread for efficiency - thread_url = models.URLField(verify_exists=False, blank=True) + thread_url = models.URLField(blank=True) class Meta: ordering = ('creation_date', )