Hi all, I have this code:
msgs = int(post['time_in_weeks'])
for i in range(msgs):
tip_msg = Tip.objects.get(week_number=i)
it always results in an error saying that no values could be found.
week_number is an integer field. When I input the value of i directly, the query works.
When i print out the value of i I get the expected values.
Any input at all would be seriously appreciated.
Thanks.