PageRenderTime 204ms CodeModel.GetById 80ms app.highlight 2ms RepoModel.GetById 121ms app.codeStats 1ms

/tests/regressiontests/max_lengths/models.py

https://code.google.com/p/mango-py/
Python | 13 lines | 11 code | 2 blank | 0 comment | 0 complexity | c4fcbdf3360889b10390a7f1e1c74827 MD5 | raw file
 1from django.db import models
 2
 3class PersonWithDefaultMaxLengths(models.Model):
 4    email = models.EmailField()
 5    vcard = models.FileField(upload_to='/tmp')
 6    homepage = models.URLField()
 7    avatar = models.FilePathField()
 8
 9class PersonWithCustomMaxLengths(models.Model):
10    email = models.EmailField(max_length=250)
11    vcard = models.FileField(upload_to='/tmp', max_length=250)
12    homepage = models.URLField(max_length=250)
13    avatar = models.FilePathField(max_length=250)