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-output-view.git

commit d9cd404bd4e8a4bab464d4a3f28e96f974aadeb5
Author: Marcus Christie <machris...@apache.org>
AuthorDate: Thu Jun 3 10:03:44 2021 -0400

    Fix module path to output view provider
---
 hooks/post_gen_project.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py
index bcbdc86..c5255e4 100644
--- a/hooks/post_gen_project.py
+++ b/hooks/post_gen_project.py
@@ -51,7 +51,7 @@ def get_django_app_package_name(setup_cfg_file):
 
 def insert_output_view_provider(setup_cfg_lines, index, 
insert_entry_point_group=False):
     updated_lines = setup_cfg_lines.copy()
-    updated_lines.insert(index+1, "    {{cookiecutter.project_slug}} = 
{{cookiecutter.custom_django_app_module_name}}.{{cookiecutter.output_views_directory_name}}:{{cookiecutter.output_view_provider_class_name}}"
 + os.linesep)
+    updated_lines.insert(index+1, "    {{cookiecutter.project_slug}} = 
{{cookiecutter.custom_django_app_module_name}}.{{cookiecutter.output_views_directory_name}}.{{cookiecutter.project_slug}}:{{cookiecutter.output_view_provider_class_name}}"
 + os.linesep)
     if insert_entry_point_group:
         updated_lines.insert(index+1, "airavata.output_view_providers =" + 
os.linesep)
     return updated_lines

Reply via email to