PEP8 Cleanups (471 warnings).

This commit is contained in:
Roberto Rosario
2015-09-17 21:34:27 -04:00
parent 2b97f4a72f
commit df417f562c
16 changed files with 907 additions and 47 deletions

View File

@@ -22,7 +22,9 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='document',
name='is_stub',
field=models.BooleanField(default=True, verbose_name='Is stub?', editable=False),
field=models.BooleanField(
default=True, verbose_name='Is stub?', editable=False
),
preserve_default=True,
),
migrations.RunPython(make_existing_documents_not_stubs),

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -616,6 +616,7 @@ class DocumentTypeFilename(models.Model):
def __str__(self):
return self.filename
@python_2_unicode_compatible
class DocumentPage(models.Model):
"""

View File

@@ -163,6 +163,7 @@ class DocumentVersionTestCase(TestCase):
def test_revert_version(self):
self.assertEqual(self.document.versions.count(), 1)
# Needed by MySQL as milliseconds value is not store in timestamp field
time.sleep(1)
with open(TEST_DOCUMENT_PATH) as file_object: