From b8239cae19128012db453a2e17c4dd2def421018 Mon Sep 17 00:00:00 2001 From: David Smith Date: Fri, 25 Sep 2020 12:10:45 +0200 Subject: Refs #28009 -- Added empty_value tests for CharField subclasses. --- tests/model_forms/models.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/model_forms/models.py') diff --git a/tests/model_forms/models.py b/tests/model_forms/models.py index 103ed71b44..1a2102f898 100644 --- a/tests/model_forms/models.py +++ b/tests/model_forms/models.py @@ -472,3 +472,6 @@ class Award(models.Model): class NullableUniqueCharFieldModel(models.Model): codename = models.CharField(max_length=50, blank=True, null=True, unique=True) + email = models.EmailField(blank=True, null=True) + slug = models.SlugField(blank=True, null=True) + url = models.URLField(blank=True, null=True) -- cgit v1.3