2007-09-19 23:33:57 +00:00
|
|
|
from django.db import models
|
|
|
|
|
2011-10-13 21:34:56 +00:00
|
|
|
|
2007-09-19 23:33:57 +00:00
|
|
|
class PersonWithDefaultMaxLengths(models.Model):
|
|
|
|
email = models.EmailField()
|
2016-11-30 22:05:31 +00:00
|
|
|
vcard = models.FileField()
|
2007-09-19 23:33:57 +00:00
|
|
|
homepage = models.URLField()
|
|
|
|
avatar = models.FilePathField()
|
|
|
|
|
2013-11-03 04:36:09 +00:00
|
|
|
|
2007-09-19 23:33:57 +00:00
|
|
|
class PersonWithCustomMaxLengths(models.Model):
|
2009-05-07 18:06:22 +00:00
|
|
|
email = models.EmailField(max_length=250)
|
2016-11-30 22:05:31 +00:00
|
|
|
vcard = models.FileField(max_length=250)
|
2009-05-07 18:06:22 +00:00
|
|
|
homepage = models.URLField(max_length=250)
|
|
|
|
avatar = models.FilePathField(max_length=250)
|