On Fri, Oct 21, 2011 at 1:54 AM, Paolo <paul...@gmail.com> wrote: > Any pointers would be appreciated - I'm not too excited about storing the > latest_assignment_update_id in my Assignment model!! >
Why need to store this? If i understand the requirement right, the status of the Assignement is based on the last-assignment-update. So, every update has an associated 'status' field? - right? If yes(which looks wrong to me, as the status should be for the assignment and not for the update), then you need order by desc on the last-update, and pick the top record. I will wait to hear more from you before i jump the gun :) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.