From d3300f77538461bc4c1f6d5b2cca88a47ebe9e72 Mon Sep 17 00:00:00 2001 From: owinter Date: Mon, 1 Jul 2024 11:33:05 +0100 Subject: [PATCH] bugfix subjects/projects admin refactor removed sessions.project field --- alyx/alyx/__init__.py | 2 +- alyx/subjects/admin.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/alyx/alyx/__init__.py b/alyx/alyx/__init__.py index 4f2184c6..63a4afcc 100644 --- a/alyx/alyx/__init__.py +++ b/alyx/alyx/__init__.py @@ -1 +1 @@ -VERSION = __version__ = '3.0.0' +VERSION = __version__ = '3.0.1' diff --git a/alyx/subjects/admin.py b/alyx/subjects/admin.py index f232a326..7a8ab709 100755 --- a/alyx/subjects/admin.py +++ b/alyx/subjects/admin.py @@ -191,7 +191,7 @@ def users_l(self, obj): users_l.short_description = 'users' def sessions_count(self, obj): - return Session.objects.filter(project=obj).count() + return Session.objects.filter(projects=obj).count() sessions_count.short_description = '# sessions' def subjects_count(self, obj):