Skip to content

Commit 0ca160d

Browse files
authored
Merge pull request #8 from vidartf/fix-names
Fix model/view name as traits
2 parents a6d4719 + 1c700e1 commit 0ca160d

File tree

1 file changed

+2
-2
lines changed
  • {{cookiecutter.github_project_name}}/{{cookiecutter.python_package_name}}

1 file changed

+2
-2
lines changed

{{cookiecutter.github_project_name}}/{{cookiecutter.python_package_name}}/example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
class ExampleWidget(DOMWidget):
1919
"""TODO: Add docstring here
2020
"""
21-
_model_name = 'ExampleModel'
21+
_model_name = Unicode('ExampleModel').tag(sync=True)
2222
_model_module = Unicode(module_name).tag(sync=True)
2323
_model_module_version = Unicode(module_version).tag(sync=True)
24-
_view_name = 'ExampleView'
24+
_view_name = Unicode('ExampleView').tag(sync=True)
2525
_view_module = Unicode(module_name).tag(sync=True)
2626
_view_module_version = Unicode(module_version).tag(sync=True)
2727

0 commit comments

Comments
 (0)