Skip to content
This repository has been archived by the owner. It is now read-only.

Explicitly made connection passing a keyword arg. #1

Merged
merged 1 commit into from Apr 24, 2015
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -13,9 +13,9 @@ def _get_db_type(field, connection):
if isinstance(field, (models.PositiveSmallIntegerField,
models.PositiveIntegerField)):
# integer CHECK ("points" >= 0)'
return field.db_type(connection).split(' ', 1)[0]
return field.db_type(connection=connection).split(' ', 1)[0]

res = field.db_type(connection)
res = field.db_type(connection=connection)
return res


@@ -106,7 +106,7 @@ def bulk_update(objs, meta=None, update_fields=None, exclude_fields=None,
case_clause['params'].extend(
[obj.pk,
field.get_db_prep_value(
getattr(obj, field.attname), connection)])
getattr(obj, field.attname), connection=connection)])

if pks:
values = ', '.join(
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.