mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Removed a few trailing backslashes.
We have always been at war with trailing backslashes.
This commit is contained in:
@@ -524,8 +524,8 @@ class Client(RequestFactory):
|
||||
not available.
|
||||
"""
|
||||
user = authenticate(**credentials)
|
||||
if user and user.is_active \
|
||||
and 'django.contrib.sessions' in settings.INSTALLED_APPS:
|
||||
if (user and user.is_active and
|
||||
'django.contrib.sessions' in settings.INSTALLED_APPS):
|
||||
engine = import_module(settings.SESSION_ENGINE)
|
||||
|
||||
# Create a fake request to store login details.
|
||||
|
||||
@@ -734,9 +734,8 @@ class TransactionTestCase(SimpleTestCase):
|
||||
def _reset_sequences(self, db_name):
|
||||
conn = connections[db_name]
|
||||
if conn.features.supports_sequence_reset:
|
||||
sql_list = \
|
||||
conn.ops.sequence_reset_by_name_sql(no_style(),
|
||||
conn.introspection.sequence_list())
|
||||
sql_list = conn.ops.sequence_reset_by_name_sql(
|
||||
no_style(), conn.introspection.sequence_list())
|
||||
if sql_list:
|
||||
with transaction.commit_on_success_unless_managed(using=db_name):
|
||||
cursor = conn.cursor()
|
||||
|
||||
Reference in New Issue
Block a user