Loading django/db/models/query.py +1 −5 Original line number Diff line number Diff line Loading @@ -312,11 +312,7 @@ class QuerySet(object): if skip: obj = model_cls(**dict(zip(init_list, row_data))) else: try: obj = model(*row_data) except IndexError: import ipdb; ipdb.set_trace() pass # Store the source database of the object obj._state.db = db Loading Loading
django/db/models/query.py +1 −5 Original line number Diff line number Diff line Loading @@ -312,11 +312,7 @@ class QuerySet(object): if skip: obj = model_cls(**dict(zip(init_list, row_data))) else: try: obj = model(*row_data) except IndexError: import ipdb; ipdb.set_trace() pass # Store the source database of the object obj._state.db = db Loading