Skip to content
This repository has been archived by the owner on Feb 7, 2019. It is now read-only.

Commit

Permalink
django 1.7: allow the commands syncdb and migrate to be run a second …
Browse files Browse the repository at this point in the history
…time
  • Loading branch information
brki committed Sep 12, 2014
1 parent f2c1c1a commit 3656da2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion versions/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def contribute_to_class(self, cls, name):
# - creating the through class if unset
# - resolving the through class if it's a string
# - resolving string references within the through class
if not self.rel.through and not cls._meta.abstract and not cls._meta.swapped:
if not self.rel.through and not cls._meta.abstract and not cls._meta.swapped and cls.__module__ != '__fake__':
self.rel.through = VersionedManyToManyField.create_versioned_many_to_many_intermediary_model(self, cls,
name)
super(VersionedManyToManyField, self).contribute_to_class(cls, name)
Expand Down

0 comments on commit 3656da2

Please sign in to comment.