This could probably become an oneliner: ``is_owner = (user == request.user)``. Or maybe you could even move that logic inside the template.