summaryrefslogtreecommitdiff
path: root/tests/max_lengths/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/max_lengths/models.py')
-rw-r--r--tests/max_lengths/models.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/max_lengths/models.py b/tests/max_lengths/models.py
new file mode 100644
index 0000000000..d66e833e8c
--- /dev/null
+++ b/tests/max_lengths/models.py
@@ -0,0 +1,14 @@
+from django.db import models
+
+
+class PersonWithDefaultMaxLengths(models.Model):
+ email = models.EmailField()
+ vcard = models.FileField(upload_to='/tmp')
+ homepage = models.URLField()
+ avatar = models.FilePathField()
+
+class PersonWithCustomMaxLengths(models.Model):
+ email = models.EmailField(max_length=250)
+ vcard = models.FileField(upload_to='/tmp', max_length=250)
+ homepage = models.URLField(max_length=250)
+ avatar = models.FilePathField(max_length=250)