forked from data.coop/membersystem
Fix member list.
This commit is contained in:
parent
f1c328a10c
commit
770c1c81b6
|
@ -6,8 +6,9 @@ from django.core.paginator import Paginator
|
||||||
from django.db.models import Model
|
from django.db.models import Model
|
||||||
from django.http import HttpRequest
|
from django.http import HttpRequest
|
||||||
from django.http import HttpResponse
|
from django.http import HttpResponse
|
||||||
|
from django.shortcuts import render
|
||||||
from django.urls import reverse
|
from django.urls import reverse
|
||||||
from zen_queries import render
|
from zen_queries import queries_disabled
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
|
@ -70,6 +71,7 @@ def render_list(
|
||||||
|
|
||||||
rows = []
|
rows = []
|
||||||
for obj in objects:
|
for obj in objects:
|
||||||
|
with queries_disabled():
|
||||||
row = Row(
|
row = Row(
|
||||||
data={column: getattr(obj, column[0]) for column in columns},
|
data={column: getattr(obj, column[0]) for column in columns},
|
||||||
actions=[action.render(obj) for action in row_actions],
|
actions=[action.render(obj) for action in row_actions],
|
||||||
|
|
Loading…
Reference in a new issue