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(
'-id'
)[:5]
{ id: 6842, draw_type: 6/58, draw_date: 2015-02-08, drawn: [57, 5, 53, 42, 18, 55], jackpot: $50,000,000.00 }
{ id: 6832, draw_type: 6/58, draw_date: 2015-02-13, drawn: [43, 24, 36, 16, 39, 22], jackpot: $50,000,000.00 }
{ id: 6828, draw_type: 6/58, draw_date: 2015-02-15, drawn: [32, 53, 5, 18, 34, 29], jackpot: $50,000,000.00 }
{ id: 6818, draw_type: 6/58, draw_date: 2015-02-20, drawn: [13, 14, 7, 41, 48, 39], jackpot: $50,000,000.00 }
{ id: 6813, draw_type: 6/58, draw_date: 2015-02-22, drawn: [47, 5, 17, 16, 57, 58], jackpot: $50,000,000.00 }