[Answer]-How to get related model fields in template

1đź‘Ť

âś…

Try this:

localpart = LocalPart.objects.get(...)
localpart.localpart.all()

…where a related_name of “localpart” is a bit confusing here.

👤schneck

Leave a comment