Last active
July 10, 2017 13:50
-
-
Save ANtlord/8dce3a4df234841fd876fb808eb36a78 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AnotherModel(models.Model) | |
#... | |
class MyModel(MPTTModel): | |
parent = TreeForeignKey('self', null=True, blank=True, db_index=True, related_name='children') | |
shifted_finish_date_from = TreeForeignKey( | |
AnotherModel, related_name='another_children', null=True, blank=True, db_index=True | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment