From 79b1442f8ef7521612210cef5f2f45901ed52b34 Mon Sep 17 00:00:00 2001 From: Paul Balluff Date: Thu, 25 Aug 2022 17:04:02 +0200 Subject: [PATCH] #181 added query labels --- flaskinventory/main/model.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/flaskinventory/main/model.py b/flaskinventory/main/model.py index 111205b5..f772068c 100644 --- a/flaskinventory/main/model.py +++ b/flaskinventory/main/model.py @@ -524,7 +524,8 @@ class Source(Entry): special_interest = Boolean(description='Does the news source have one main topical focus?', label='Yes, is a special interest publication', - queryable=True) + queryable=True, + query_label="Special Interest Publication") topical_focus = MultipleChoice(description="What is the main topical focus of the news source?", choices={'politics': 'Politics', @@ -623,7 +624,8 @@ class Source(Entry): choices={'yes': 'Yes', 'no': 'No', 'NA': "Don't know / NA"}, - queryable=True) + queryable=True, + query_label="E-Paper Available") sources_included = ReverseListRelationship('sources_included', allow_new=False, @@ -786,7 +788,8 @@ class Dataset(Entry): concept_vars = ListRelationship(description="List of variables based on concepts (e.g. sentiment, frames, etc)", relationship_constraint="ConceptVar", render_kw={'placeholder': 'Select multiple...'}, - autoload_choices=True) + autoload_choices=True + ) class Corpus(Entry): @@ -938,11 +941,11 @@ class Tool(Entry): required=True, queryable=True) - concept_vars = ListRelationship(description="Which concepts can the tool measuere (e.g. sentiment, frames, etc)", + concept_vars = ListRelationship(description="Which concepts can the tool measure (e.g. sentiment, frames, etc)", relationship_constraint="ConceptVar", - render_kw={'placeholder': 'Select multiple...'}, autoload_choices=True, - queryable=True) + queryable=True, + query_label='Concept Variables') graphical_user_interface = Boolean(description="Does the tool have a graphical user interface?", label="Yes, it does have a GUI",