summaryrefslogtreecommitdiff
path: root/tests/model_forms/models.py
diff options
context:
space:
mode:
authorDavid Smith <smithdc@gmail.com>2020-09-25 12:10:45 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-09-25 12:33:54 +0200
commitb8239cae19128012db453a2e17c4dd2def421018 (patch)
tree34b6de880d19346afcfc97b893c37c894680b1bb /tests/model_forms/models.py
parent997f87c5b03f4dfdb70b9bd71c889bd6bb3e72cc (diff)
Refs #28009 -- Added empty_value tests for CharField subclasses.
Diffstat (limited to 'tests/model_forms/models.py')
-rw-r--r--tests/model_forms/models.py3
1 files changed, 3 insertions, 0 deletions
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)