The queryset object:
<QuerySet [{'id': 2, 'firstname': 'Tobias', 'lastname': 'Refsnes', 'phone': 5557777, 'joined_date': datetime.date(2022, 4, 1)}, {'id': 5, 'firstname': 'Stalikken', 'lastname': 'Refsnes', 'phone': 5559876, 'joined_date': datetime.date(2022, 9, 29)}, {'id': 3, 'firstname': 'Linus', 'lastname': 'Refsnes', 'phone': 5554321, 'joined_date': datetime.date(2021, 12, 24)}, {'id': 4, 'firstname': 'Lene', 'lastname': 'Refsnes', 'phone': 5551234, 'joined_date': datetime.date(2021, 5, 5)}, {'id': 1, 'firstname': 'Emil', 'lastname': 'Refsnes', 'phone': 5551234, 'joined_date': datetime.date(2022, 1, 5)}]>Loop through the items:
ID | Firstname | Lastname |
---|---|---|
2 | Tobias | Refsnes |
5 | Stalikken | Refsnes |
3 | Linus | Refsnes |
4 | Lene | Refsnes |
1 | Emil | Refsnes |