Last active
March 4, 2022 13:04
-
-
Save benzkji/118cf61c068f21101803b2f6a0726467 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
| from django.core.management.base import BaseCommand | |
| from filer.models import Folder | |
| class Command(BaseCommand): | |
| def handle(self, *args, **options): | |
| Folder._tree_manager.rebuild() |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
django management command that rebuilds django-filer's mptt tree for the
Folderobject.