Skip to content

Commit

Permalink
Typo in custom widgets section of docs (#137)
Browse files Browse the repository at this point in the history
Thanks, @drkane.
  • Loading branch information
drkane authored Jul 6, 2021
1 parent 65e7d51 commit 2fd0967
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/widgets.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ You can define your own custom widgets by creating templates with special names.

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.

For example, you could define a widget that handles results returned as `placename`, `geojson` by creating a template called `geojson-label.html`.
For example, you could define a widget that handles results returned as `placename`, `geojson` by creating a template called `geojson-placename.html`.

Save that in one of your template directories as `django_sql_dashboard/widgets/geojson-label.html`.
Save that in one of your template directories as `django_sql_dashboard/widgets/geojson-placename.html`.

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

Expand Down

0 comments on commit 2fd0967

Please sign in to comment.