Skip to content

Commit

Permalink
Merge pull request #308 from dlareau/django2.x-loaddata-fix
Browse files Browse the repository at this point in the history
Remove old unused "commit" option to loaddata.handle
  • Loading branch information
jwhitlock authored Aug 19, 2020
2 parents 5e824f5 + 652f61e commit 182961e
Showing 1 changed file with 0 additions and 4 deletions.
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

0 comments on commit 182961e

Please sign in to comment.