Bug #30
Disallow tree infinite recursion
Start date:
10/27/2010
Due date:
% Done:
0%
Estimated time:
Description
Currently, trees can easily be infinitely recursive. This seems like an undesirable behavior, especially as the default get_path behavior assumes a non-recursive tree, is used for generating a model's unicode, and will crash the script with infinite recursion any time that the unicode is used (by say the admin.) The validation for this should be done either by the model or by creating a custom Parent field.
Related issues
History
Updated by Stephen Burrows over 13 years ago
- Status changed from New to Feedback
- Assignee set to Stephen Burrows
Addressed by feature branch disallow_recursive, which starts with commit 52ad9c8dfe6a330b34193f5424d8bb05083d5a10. I don't know if this is the way we want to solve the problem, though.
Updated by Stephen Burrows over 13 years ago
- Status changed from Feedback to Closed
This is irrelevant and already handled now that we've moved to django-mptt for our tree structure.