diff options
author | Magnus Hagander | 2024-12-03 20:40:28 +0000 |
---|---|---|
committer | Magnus Hagander | 2024-12-03 20:40:28 +0000 |
commit | 4ea9e1f7297604fc62d6877b727ed409286fb672 (patch) | |
tree | fed838f20f17a6c0ec2ee713f61f858634f067ec /postgresqleu/util/backendviews.py | |
parent | 94fdf413e3ed57fee94e02602e6ce1eba2c0596c (diff) |
Fix column filters for "copy from previous conference"
The contents of the dropdown in the filter was taken from the conference
they are being copied *to*, but the contents of the list is the objects
from the conference being copied *from*. This mostly shows up when
copying sessions, when filtering by track or room makes most sense --
and would be wrong if the track/rooms didn't exist in the new
conference.
Diffstat (limited to 'postgresqleu/util/backendviews.py')
-rw-r--r-- | postgresqleu/util/backendviews.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/postgresqleu/util/backendviews.py b/postgresqleu/util/backendviews.py index 371e8c29..ca87d553 100644 --- a/postgresqleu/util/backendviews.py +++ b/postgresqleu/util/backendviews.py @@ -517,7 +517,7 @@ def backend_handle_copy_previous(request, formclass, restpieces, conference): 'plural_name': formclass._verbose_name_plural(), 'headers': [formclass.get_field_verbose_name(f) for f in formclass.list_fields], 'coltypes': formclass.coltypes, - 'filtercolumns': formclass.get_column_filters(conference), + 'filtercolumns': formclass.get_column_filters(sourceconf), 'defaultsort': formclass.numeric_defaultsort(), 'return_url': '../', 'allow_new': False, |