[Answer]-How to call database records and the data that also goes with it

1๐Ÿ‘

โœ…

I hope, the event field in Register model is a ForeignKey to/from Events model.

in that case

<b>Friday</b>
{% for event in Fri_eve %}
 {{ event.sport }}
 {{ event.level }}

 People: 
 {% for reg in event.registration_set.all %}
     {{ reg.person }}
 {% endfor %}
{% endfor %}

it will be then something like:

Football Advanced
People:
  Mark John
  Mike Jordan
  ..

btw: your ORM should be

Event.objects.filter(day = 'Friday')
๐Ÿ‘คdoniyor

Leave a comment