Skip to content

Child node details not updated on subsequent page renders #102

@riheco

Description

@riheco

Hi,

I've just begun trying out this really useful package.

However, I've run into a problem with the child nodes not getting refreshed if I update the details such as the node name. A few tests has shown that the top level nodes in the tree are refreshed okay if I update the name and refresh the page, but a page refresh after updating a child node name doesn't show the updated name.

I notice there is some child caching going on in the source code for the recursetree tag and suspect this cache is persisting across subsequent page render operations, instead of getting cleared for each page load. Updating the template code, or view code seems to clear this cache as subsequent page renders show the up-to-date details after either of these changes. Showing the query result in the rendered page indicates the query does obtain the up-to-date names each time I refresh the page, it is only the {% recursetree nodetree %} template tag that seems to be failing to refresh properly.

I am using Django 5.2.7 and django-tree-queries 0.23.0 and seeing this problem when using the standard Django development server.

Thanks,

Richard.

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