Debian Codegraph @

tests/max_lengths/models.py

raw
1 from django.db import models
2
3
4 class PersonWithDefaultMaxLengths(models.Model):
5 email = models.EmailField()
6 vcard = models.FileField()
7 homepage = models.URLField()
8 avatar = models.FilePathField()
9
10
11 class PersonWithCustomMaxLengths(models.Model):
12 email = models.EmailField(max_length=250)
13 vcard = models.FileField(max_length=250)
14 homepage = models.URLField(max_length=250)
15 avatar = models.FilePathField(max_length=250)