mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Removed deprecated URLField.verify_exists.
The deprecation schedule was slightly accelerated because of possible security ramifications. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17847 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -15,7 +15,6 @@ class ModelToValidate(models.Model):
|
||||
parent = models.ForeignKey('self', blank=True, null=True, limit_choices_to={'number': 10})
|
||||
email = models.EmailField(blank=True)
|
||||
url = models.URLField(blank=True)
|
||||
url_verify = models.URLField(blank=True, verify_exists=True)
|
||||
f_with_custom_validator = models.IntegerField(blank=True, null=True, validators=[validate_answer_to_universe])
|
||||
|
||||
def clean(self):
|
||||
@@ -102,4 +101,4 @@ try:
|
||||
auto2 = models.AutoField(primary_key=True)
|
||||
except AssertionError, assertion_error:
|
||||
pass # Fail silently
|
||||
assert str(assertion_error) == u"A model can't have more than one AutoField."
|
||||
assert str(assertion_error) == u"A model can't have more than one AutoField."
|
||||
|
||||
Reference in New Issue
Block a user