PEP8 Cleanups (471 warnings).
This commit is contained in:
@@ -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
@@ -616,6 +616,7 @@ class DocumentTypeFilename(models.Model):
|
||||
def __str__(self):
|
||||
return self.filename
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class DocumentPage(models.Model):
|
||||
"""
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user