diff options
Diffstat (limited to 'postgresqleu/util/backendviews.py')
-rw-r--r-- | postgresqleu/util/backendviews.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/postgresqleu/util/backendviews.py b/postgresqleu/util/backendviews.py index 539595d7..87f04e5e 100644 --- a/postgresqleu/util/backendviews.py +++ b/postgresqleu/util/backendviews.py @@ -250,7 +250,11 @@ def backend_list_editor(request, urlname, formclass, resturl, allow_new=True, al else: raise Http404() - values = [{'id': o.pk, 'vals': [getattr(o, '_display_{0}'.format(f), getattr(o, f)) for f in formclass.list_fields]} for o in objects] + values = [{ + 'id': o.pk, + 'vals': [getattr(o, '_display_{0}'.format(f), getattr(o, f)) for f in formclass.list_fields], + 'rowclass': formclass.get_rowclass(o), + } for o in objects] return render(request, 'confreg/admin_backend_list.html', { 'conference': conference, |