Django Models Parent Child Template Rendering
Just a quick little tip. It took me quite a bit to time to stumble across this, as the Django documentation does not mention it. If you have a ‘related_name’ set for a ForeignKey field on a model, USE that related_name as the MODELCHILD_SET name when trying to access related objects. Working Example Based on…