diff --git a/librarian/tables.py b/librarian/tables.py index 93c71f5c1f497a50a473e8454771c58f4491bdce..5e62fa3ba49f43b0cfaad44d481e7dd7f1b6f2da 100644 --- a/librarian/tables.py +++ b/librarian/tables.py @@ -21,9 +21,9 @@ class CopyLoanHistoryTable(tables.Table): returned_date = tables.Column(accessor="checked_in", verbose_name="Returned Date") actions = tables.Column(empty_values=()) - # noinspection PyMethodMayBeStatic + # noinspection PyUnresolvedReferences def render_user(self, value, record): - return render_to_string("librarian/widgets/user_profile_link.html", {"user": record.user}) + return render_to_string("librarian/widgets/user_profile_link.html", {"user": record.user}, self.request) # noinspection PyMethodMayBeStatic def render_due_date(self, value, record): @@ -32,9 +32,9 @@ class CopyLoanHistoryTable(tables.Table): else: return value - # noinspection PyMethodMayBeStatic + # noinspection PyUnresolvedReferences def render_actions(self, value, record): - return render_to_string("librarian/widgets/actions_copy_loans.html", {"loan": record}) + return render_to_string("librarian/widgets/actions_copy_loans.html", {"loan": record}, self.request) class UserLoanActiveTable(tables.Table): @@ -63,9 +63,9 @@ class UserLoanActiveTable(tables.Table): else: return value - # noinspection PyMethodMayBeStatic + # noinspection PyUnresolvedReferences def render_actions(self, value, record): - return render_to_string("librarian/widgets/actions_user_loans.html", {"loan": record}) + return render_to_string("librarian/widgets/actions_user_loans.html", {"loan": record}, self.request) class UserLoanHistoryTable(tables.Table):