2007-09-20 01:33:57 +02:00
|
|
|
from django.db import models
|
|
|
|
|
2011-10-13 23:34:56 +02:00
|
|
|
|
2007-09-20 01:33:57 +02:00
|
|
|
class PersonWithDefaultMaxLengths(models.Model):
|
|
|
|
email = models.EmailField()
|
|
|
|
vcard = models.FileField(upload_to='/tmp')
|
|
|
|
homepage = models.URLField()
|
|
|
|
avatar = models.FilePathField()
|
|
|
|
|
2013-11-03 05:36:09 +01:00
|
|
|
|
2007-09-20 01:33:57 +02:00
|
|
|
class PersonWithCustomMaxLengths(models.Model):
|
2009-05-07 20:06:22 +02:00
|
|
|
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)
|