Skip to content

refresh_from_db RecursionError #334

@devxplorer

Description

@devxplorer

We have a case where we need to track the status change on the model. This is done by assigning an current status attribute in the init method.

In tests in many places we use the refresh_from_db method, together all these things give an error with recursion.

To illustrate the error, a simple project was created: https://github.com/devxplorer/onchange

I'm not sure if this can be considered a bug, but I have not come up with the problem yet.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions