Skip to content

Commit 2fd0967

Browse files
authored
Typo in custom widgets section of docs (#137)
Thanks, @drkane.
1 parent 65e7d51 commit 2fd0967

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/widgets.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ You can define your own custom widgets by creating templates with special names.
135135

136136
Decide 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

142142
Any SQL query that returns exactly the columns `placename` and `geojson` will now be rendered by your custom template file.
143143

0 commit comments

Comments
 (0)