Django

Code

root/django/trunk/tests/regressiontests/max_lengths/models.py

Revision 7294, 483 bytes (checked in by mtredinnick, 5 months ago)

Added "svn:eol-style native" to every text file in the tree (*.txt, *.html,
*.py, *.xml and AUTHORS, etc). Added "svn:ignore *.pyc" to some directories in
tests/regressiontests/ that were previously missing it.

Fixed #6545, #6801.

  • Property svn:eol-style set to native
Line 
1 from django.db import models
2
3 class PersonWithDefaultMaxLengths(models.Model):
4     email = models.EmailField()
5     vcard = models.FileField(upload_to='/tmp')
6     homepage = models.URLField()
7     avatar = models.FilePathField()
8
9 class PersonWithCustomMaxLengths(models.Model):
10     email = models.EmailField(max_length=384)
11     vcard = models.FileField(upload_to='/tmp', max_length=1024)
12     homepage = models.URLField(max_length=256)
13     avatar = models.FilePathField(max_length=512)
Note: See TracBrowser for help on using the browser.