Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove old unused "commit" option to loaddata.handle #308

Merged
merged 1 commit into from
Aug 19, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions django_nose/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,6 @@ def _foreign_key_ignoring_handle(self, *fixture_labels, **options):
monkeypatched into place in setup_databases().
"""
using = options.get('database', DEFAULT_DB_ALIAS)
commit = options.get('commit', True)
connection = connections[using]

# MySQL stinks at loading circular references:
Expand All @@ -334,9 +333,6 @@ def _foreign_key_ignoring_handle(self, *fixture_labels, **options):
cursor = connection.cursor()
cursor.execute('SET foreign_key_checks = 1')

if commit:
connection.close()


def _skip_create_test_db(self, verbosity=1, autoclobber=False, serialize=True,
keepdb=True):
Expand Down