This is an automated email from the ASF dual-hosted git repository. machristie pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/airavata-cookiecutter-django-app.git
commit 6de79babe9739a9217208baae03011ab42a602f6 Author: Marcus Christie <[email protected]> AuthorDate: Thu Jan 13 16:52:02 2022 -0500 Handle hyphens in project name when creating class name Fixes #1 --- cookiecutter.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookiecutter.json b/cookiecutter.json index d0f23d8..109b4cf 100644 --- a/cookiecutter.json +++ b/cookiecutter.json @@ -2,7 +2,7 @@ "project_name": "My Custom Django App", "project_slug": "{{ cookiecutter.project_name | slugify(separator='_')}}", "project_short_description": "Custom Django app with everything needed to be installed in the airavata-django-portal", - "app_config_class_name": "{{ cookiecutter.project_name | title | replace(' ', '') }}Config", + "app_config_class_name": "{{ cookiecutter.project_name | slugify(separator=' ') | title | replace(' ', '') }}Config", "version": "0.1.0", "_copy_without_render": [ "*.html"
