Skip to content

Ordering the tree causes the action_icons of it's subnodes to become equal to it's own action_icons #11

@mvdwaeter

Description

@mvdwaeter

When I have the following PolymorphicTree:

class BaseTreeNode(PolymorphicMPTTModel):
    pass

class Edition(BaseTreeNode):
    pass

class Chapter(BaseTreeNode):
    pass

class ContentPage(BaseTreeNode):
    pass

class Text(BaseTreeNode):
    pass

The tree in the django-admin may look like this:

- Edition1    [actions: add-chapter]
-- Chapter1    [actions: add-contentpage]
--- ContentPage1.1    [actions: add-text]
--- ContentPage1.2    [actions: add-text]
-- Chapter2    [actions: add-contentpage]
--- ContentPage2.1    [actions: add-text]

When I move Chapter2 above Chapter1, all the actions of it's subnodes will become equal to the Chapter node. (While they should remain ContentPage-actions).

In other words, the tree will look like this:

- Edition1    [actions: add-chapter]
-- Chapter2    [actions: add-contentpage]
--- ContentPage2.1    [actions: add-contentpage]    <---- this is not correct
-- Chapter1    [actions: add-contentpage]
--- ContentPage1.1    [actions: add-text]
--- ContentPage1.2    [actions: add-text]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions