def METHOD_NAME(self, contest_id):
    self.contest = self.safe_get_item(Contest, contest_id)
    self.r_params = self.render_params()
    self.r_params["contest"] = self.contest
    self.r_params["unassigned_tasks"] = \
        self.sql_session.query(Task)\
            .filter(Task.contest_id.is_(None))\
            .all()
    self.render("contest_tasks.html", **self.r_params)