diff options
Diffstat (limited to 'archaeological_finds/forms.py')
-rw-r--r-- | archaeological_finds/forms.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/archaeological_finds/forms.py b/archaeological_finds/forms.py index ae592d013..3073c5c23 100644 --- a/archaeological_finds/forms.py +++ b/archaeological_finds/forms.py @@ -992,6 +992,7 @@ class FindFormSelection(CustomFormSearch): widget=widgets.DataTable( reverse_lazy('get-find'), FindSelect, models.Find, + gallery=True, source_full=reverse_lazy('get-find-full')), validators=[valid_id(models.Find)]) @@ -1002,6 +1003,7 @@ class FindFormSelectionWarehouseModule(FindFormSelection): widget=widgets.DataTable( reverse_lazy('get-find'), FindSelectWarehouseModule, models.Find, + gallery=True, source_full=reverse_lazy('get-find-full')), validators=[valid_id(models.Find)]) @@ -1015,6 +1017,7 @@ class MultipleFindFormSelection(forms.Form): widget=widgets.DataTable( reverse_lazy('get-find'), FindSelect, models.Find, + gallery=True, multiple_select=True, source_full=reverse_lazy('get-find-full')), validators=[valid_id(models.Find)]) @@ -1026,6 +1029,7 @@ class MultipleFindFormSelectionWarehouseModule(MultipleFindFormSelection): widget=widgets.DataTable( reverse_lazy('get-find'), FindSelectWarehouseModule, models.Find, + gallery=True, multiple_select=True, source_full=reverse_lazy('get-find-full')), validators=[valid_id(models.Find)]) @@ -1041,6 +1045,7 @@ class FindMultipleFormSelection(forms.Form): label="", required=False, widget=widgets.DataTable( reverse_lazy('get-find'), FindSelectWarehouseModule, models.Find, + gallery=True, multiple=True, multiple_cols=[2, 3, 4]), validators=[valid_ids(models.Find)]) @@ -1186,6 +1191,7 @@ class UpstreamFindFormSelection(PkWizardSearch, FindFormSelection): widget=widgets.DataTable( reverse_lazy('get-find'), FindSelect, current_model, + gallery=True, multiple_select=True, source_full=reverse_lazy('get-find-full')), validators=[valid_ids(current_model)]) @@ -1203,6 +1209,7 @@ class SingleUpstreamFindFormSelection(UpstreamFindFormSelection): widget=widgets.DataTable( reverse_lazy('get-find'), FindSelect, current_model, + gallery=True, source_full=reverse_lazy('get-find-full')), validators=[valid_ids(current_model)]) |