diff --git a/physionet-django/project/modelcomponents/activeproject.py b/physionet-django/project/modelcomponents/activeproject.py index 397809af9e..7eed7e6f21 100644 --- a/physionet-django/project/modelcomponents/activeproject.py +++ b/physionet-django/project/modelcomponents/activeproject.py @@ -537,7 +537,7 @@ def clear_files(self): """ self.files.rmtree(self.file_root()) - def publish(self, slug=None, make_zip=True, title=None): + def publish(self, slug=None, make_zip=True): """ Create a published version of this project and update the submission status. @@ -571,14 +571,13 @@ def publish(self, slug=None, make_zip=True, title=None): previous_published_projects = self.core_project.publishedprojects.all() slug = previous_published_projects.first().slug - title = previous_published_projects.first().title if slug != published_project.slug: raise ValueError( {"message": "The published project has different slugs."}) # Set the slug if specified published_project.slug = slug or self.slug - published_project.title = title or self.title + published_project.title = self.title published_project.doi = self.doi # Change internal links (that point to files within