Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration from django-mptt #3

Open
claudep opened this issue Sep 15, 2020 · 2 comments
Open

Migration from django-mptt #3

claudep opened this issue Sep 15, 2020 · 2 comments
Labels
documentation enhancement New feature or request good first issue Good for newcomers

Comments

@claudep
Copy link

claudep commented Sep 15, 2020

It would be so nice to find a "migrate from django-mptt" section in the docs!

@matthiask
Copy link
Member

That's an excellent idea!

This is a related issue: feincms/feincms3#2

My current thinking is:

  • Add a position field
  • Set position = tree_id * 100000 + lft
  • Ensure that the model has ordering = ["position"] set in its class Meta:
  • Remove the MPTT fields

... and things should just work from there.

Now, I (or someone) should verify that this works and then write the docs for it.

@CoderMungan
Copy link

@matthiask hi, as i understand your idea i did it smth u can check #74.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants