DjModel.objects.get(
id=
100
).to_dict()
{'id': 100, 'draw_type': '6/55', 'draw_date': datetime.date(2023, 7, 26), 'drawn': [54, 2, 3, 21, 13, 6], 'jackpot': '$29,700,000.00'}
DjModel.objects.all().filter(
draw_type=
'6/58'
).order_by(
'-draw_date'
)[:8]
{ id: 15143, draw_type: 6/58, draw_date: 2024-11-26, drawn: [5, 51, 29, 7, 52, 44], jackpot: $157,279,773.60 }
{ id: 15148, draw_type: 6/58, draw_date: 2024-11-24, drawn: [31, 56, 15, 51, 30, 14], jackpot: $150,367,501.20 }
{ id: 15152, draw_type: 6/58, draw_date: 2024-11-22, drawn: [22, 6, 31, 34, 17, 5], jackpot: $143,013,966.00 }
{ id: 15158, draw_type: 6/58, draw_date: 2024-11-19, drawn: [18, 2, 36, 33, 49, 5], jackpot: $135,367,602.00 }
{ id: 15163, draw_type: 6/58, draw_date: 2024-11-17, drawn: [14, 1, 33, 58, 20, 28], jackpot: $128,756,395.20 }
{ id: 15167, draw_type: 6/58, draw_date: 2024-11-15, drawn: [6, 7, 26, 17, 24, 56], jackpot: $122,677,993.20 }
{ id: 15173, draw_type: 6/58, draw_date: 2024-11-12, drawn: [10, 22, 11, 5, 38, 40], jackpot: $115,983,208.40 }
{ id: 15178, draw_type: 6/58, draw_date: 2024-11-10, drawn: [51, 26, 24, 46, 43, 27], jackpot: $111,695,351.20 }