Skip to content
Browse files

Fix weird autodetector error

  • Loading branch information...
1 parent 41afae4 commit 40afdaf08ca7562d8908b999511cd40a432520a9 @andrewgodwin andrewgodwin committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/db/models/fields/
2 django/db/models/fields/
@@ -2035,7 +2035,7 @@ def deconstruct(self):
if getattr(self.rel, 'through', None) is not None:
if isinstance(self.rel.through, six.string_types):
kwargs['through'] = self.rel.through
- else:
+ elif not self.rel.through._meta.auto_created:
kwargs['through'] = "%s.%s" % (self.rel.through._meta.app_label, self.rel.through._meta.object_name)
# If swappable is True, then see if we're actually pointing to the target
# of a swap.

0 comments on commit 40afdaf

Please sign in to comment.
Something went wrong with that request. Please try again.