[Fixed]-Connect and present data from two different tables in django

1👍

You can write a method on System to return the last change for an item:

def last_change(self):
    return self.changes_set.order_by('-date').first()

Now you can indeed call system.last_change in the template.

Leave a comment