correction
text
is a foreign relationship. data.texts
will return a queryset manager object.
You need to call .all()
on it to get all the entities.
In the Django template, you can just use .all
.
Use render
from django.shortcuts
: it does the heavy lifting for you (template management and all).