boxed / django-fastdev

An app to make it safer, faster and more fun to develop in Django
BSD 3-Clause "New" or "Revised" License
156 stars 13 forks source link

Confirm a node actually has the child nodelist it claims to have before accessing the nodelist #48

Closed patknight closed 1 month ago

patknight commented 1 month ago

Found that Django IncludeNode.child_nodelists is ('nodelists',), but the IncludeNode doesn't actually have a nodelists attribute. Check the attribute exists before accessing it. See https://github.com/boxed/django-fastdev/issues/47#issuecomment-2408610254.

boxed commented 1 month ago

Huh. I thought I fixed that in Django a while back. Thanks!