mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
PEP8 cleanup
Signed-off-by: Jason Myers <jason@jasonamyers.com>
This commit is contained in:
parent
0fdb692c6c
commit
7a61c68c50
128 changed files with 739 additions and 206 deletions
|
@ -7,6 +7,7 @@ class PersonWithDefaultMaxLengths(models.Model):
|
|||
homepage = models.URLField()
|
||||
avatar = models.FilePathField()
|
||||
|
||||
|
||||
class PersonWithCustomMaxLengths(models.Model):
|
||||
email = models.EmailField(max_length=250)
|
||||
vcard = models.FileField(upload_to='/tmp', max_length=250)
|
||||
|
|
|
@ -22,6 +22,7 @@ class MaxLengthArgumentsTests(unittest.TestCase):
|
|||
self.verify_max_length(PersonWithCustomMaxLengths, 'homepage', 250)
|
||||
self.verify_max_length(PersonWithCustomMaxLengths, 'avatar', 250)
|
||||
|
||||
|
||||
class MaxLengthORMTests(unittest.TestCase):
|
||||
|
||||
def test_custom_max_lengths(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue