Merge pull request #97 from nschlemm/patch-1

Fix flake8 W504 line break after binary operator
This commit is contained in:
Jannis Leidel 2019-01-27 21:46:24 +01:00 committed by GitHub
commit cef1ec49c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,8 +25,9 @@ class DbTemplatesTestCase(TestCase):
self.old_template_loaders = settings.TEMPLATE_LOADERS
if 'dbtemplates.loader.Loader' not in settings.TEMPLATE_LOADERS:
loader.template_source_loaders = None
settings.TEMPLATE_LOADERS = (list(settings.TEMPLATE_LOADERS) +
['dbtemplates.loader.Loader'])
settings.TEMPLATE_LOADERS = list(settings.TEMPLATE_LOADERS) + [
'dbtemplates.loader.Loader'
]
self.site1, created1 = Site.objects.get_or_create(
domain="example.com", name="example.com")