Skip to content

Changes from parent to many childs #335

Answered by adamghill
Marenostrum81 asked this question in Q&A
Discussion options

You must be logged in to vote

In the table.py section of https://www.django-unicorn.com/docs/child-components/#multiple-children there is this code:

for child in self.children:
  if hasattr(child, "is_editing"):
      child.is_editing = False

Something similar to that is how I've handled changing a child from a parent.

Child components can sometimes be tricky to get working, but hopefully that is helpful!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Marenostrum81
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants