diff options
author | Claude Paroz <claude@2xlibre.net> | 2014-12-21 21:19:05 +0100 |
---|---|---|
committer | Claude Paroz <claude@2xlibre.net> | 2014-12-30 18:16:25 +0100 |
commit | 51890ce8898f821d28f2f6fb6071c936e9bd88f0 (patch) | |
tree | 6522c597d411086b0a5c2ec3dd7a1d9bc2feeafd /tests/string_lookup | |
parent | 66f9a74b4514bd259976ce8ee3a4e78288358a5f (diff) | |
download | django-51890ce8898f821d28f2f6fb6071c936e9bd88f0.tar.gz |
Applied ignore_warnings to Django tests
Diffstat (limited to 'tests/string_lookup')
-rw-r--r-- | tests/string_lookup/models.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/string_lookup/models.py b/tests/string_lookup/models.py index 4037c2950e..5761d80d49 100644 --- a/tests/string_lookup/models.py +++ b/tests/string_lookup/models.py @@ -1,6 +1,5 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals -import warnings from django.db import models from django.utils.encoding import python_2_unicode_compatible @@ -55,9 +54,7 @@ class Base(models.Model): class Article(models.Model): name = models.CharField(max_length=50) text = models.TextField() - with warnings.catch_warnings(record=True) as w: - warnings.simplefilter("always") - submitted_from = models.IPAddressField(blank=True, null=True) + submitted_from = models.GenericIPAddressField(blank=True, null=True) def __str__(self): return "Article %s" % self.name |