File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -135,9 +135,9 @@ You can define your own custom widgets by creating templates with special names.
135135
136136Decide on the column names that you wish to customize for, then sort them alphabetically and join them with hyphens to create your template name.
137137
138- For example, you could define a widget that handles results returned as ` placename ` , ` geojson ` by creating a template called ` geojson-label .html ` .
138+ For example, you could define a widget that handles results returned as ` placename ` , ` geojson ` by creating a template called ` geojson-placename .html ` .
139139
140- Save that in one of your template directories as ` django_sql_dashboard/widgets/geojson-label .html ` .
140+ Save that in one of your template directories as ` django_sql_dashboard/widgets/geojson-placename .html ` .
141141
142142Any SQL query that returns exactly the columns ` placename ` and ` geojson ` will now be rendered by your custom template file.
143143
You can’t perform that action at this time.
0 commit comments