Skip to content

Commit

Permalink
honour "using" when saving model (closes #68)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaine committed Jun 3, 2015
1 parent 5d87489 commit 6930a8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ldapdb/models/base.py
Expand Up @@ -120,7 +120,7 @@ def save(self, using=None):
# update an existing entry
record_exists = True
modlist = []
orig = self.__class__.objects.get(pk=self.saved_pk)
orig = self.__class__.objects.using(using).get(pk=self.saved_pk)
for field in self._meta.fields:
if not field.db_column:
continue
Expand Down

0 comments on commit 6930a8d

Please sign in to comment.