Ticket #1099 (closed defect: fixed)
Column Aggregation Inheritance breaks NestedSet
| Reported by: | zomg | Owned by: | romanb |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.11.0 |
| Component: | NestedSet | Version: | 0.11.0 |
| Severity: | Keywords: | NestedSet, Column Aggregation Inheritance | |
| Cc: | Has Test: | ||
| Status: | Has Patch: |
Description
Using NestedSet? with Column Aggregation Inheritance does not work correctly.
Take a Page model which acts as NestedSet? and has subclass SubPage?. Now, query the database for some SubPage? objects, and try accessing their parent nodes. This will always produce a false result, even if the SubPage? had a parent in the NestedSet?.
The attached patch fixes the issue. I have tested it in one of the projects I'm working on, and it has worked OK.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.