Skip to content

Commit ced52aa

Browse files
committed
Fix the .toplevel() code
Broken by: c035954
1 parent 2540941 commit ced52aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

polymorphic_tree/managers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ def toplevel(self):
3131
"""
3232
# By using .all(), the proper get_query_set()/get_queryset() will be used for each Django version.
3333
# Django 1.4/1.5 need to use get_query_set(), because the RelatedManager overrides that.
34-
return qs.all().toplevel()
34+
return self.all().toplevel()

0 commit comments

Comments
 (0)