Post #4444190
2026-08-08 09:53 UTC
@damien@layer8.space
Imagine you have a Bread model and it has a ForeignKey to a BreadType.
Then you have a data input of 100 breads of variying BreadTypes.
When you go through the list, you'll want to create new BreadTypes for ones that don't yet exist and reference the ones that already do. You don't have to create separate conditional branches to first check if a BreadType exists or not.
Does that help?
Replies (0)
No replies.