Permalink
Browse files

fixes #87: remove verify_exists on UrlField for django-1.5 compatibility

  • Loading branch information...
1 parent 9806c44 commit 48f8e0a9bc3d4ec3ff9ceaa7366641d9d036f157 @stefanfoulis stefanfoulis committed Jan 23, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 cmsplugin_filer_image/models.py
  2. +1 −1 cmsplugin_filer_teaser/models.py
@@ -18,7 +18,7 @@ class FilerImage(CMSPlugin):
caption_text = models.CharField(_("caption text"), null=True, blank=True, max_length=255)
image = FilerImageField(null=True, blank=True, default=None, verbose_name=_("image"))
if LooseVersion(django.get_version()) < LooseVersion('1.5'):
- image_url = models.URLField(_("alternative image url"), verify_exists=False, null=True, blank=True, default=None)
+ image_url = models.URLField(_("alternative image url"), null=True, blank=True, default=None)
@kux

kux Apr 1, 2013

Contributor

It looks like this makes the if and else identical. You could probably remove the if altogether.

else:
image_url = models.URLField(_("alternative image url"), null=True, blank=True, default=None)
alt_text = models.CharField(_("alt text"), null=True, blank=True, max_length=255)
@@ -18,7 +18,7 @@ class FilerTeaser(CMSPlugin):
title = models.CharField(_("title"), max_length=255, blank=True)
image = FilerImageField(blank=True, null=True, verbose_name=_("image"))
if LooseVersion(django.get_version()) < LooseVersion('1.5'):
- image_url = models.URLField(_("alternative image url"), verify_exists=False, null=True, blank=True, default=None)
+ image_url = models.URLField(_("alternative image url"), null=True, blank=True, default=None)
@kux

kux Apr 1, 2013

Contributor

Same as above.

else:
image_url = models.URLField(_("alternative image url"), null=True, blank=True, default=None)

0 comments on commit 48f8e0a

Please sign in to comment.