diff --git a/django/cantusdb_project/main_app/tests/test_views.py b/django/cantusdb_project/main_app/tests/test_views.py index e59845bd4..bf60cf2e4 100644 --- a/django/cantusdb_project/main_app/tests/test_views.py +++ b/django/cantusdb_project/main_app/tests/test_views.py @@ -3644,11 +3644,11 @@ def test_edit_syllabification(self): self.assertEqual(chant.manuscript_syllabized_full_text, "lorem ipsum") response = self.client.post( f"/edit-syllabification/{chant.id}", - {"manuscript_syllabized_full_text": "lo-rem ip-sum"}, + {"manuscript_syllabized_full_text": "lore-m i-psum"}, ) self.assertEqual(response.status_code, 302) # 302 Found chant.refresh_from_db() - self.assertEqual(chant.manuscript_syllabized_full_text, "lo-rem ip-sum") + self.assertEqual(chant.manuscript_syllabized_full_text, "lore-m i-psum") class FeastListViewTest(TestCase): diff --git a/django/cantusdb_project/main_app/views/chant.py b/django/cantusdb_project/main_app/views/chant.py index 7c743ee2e..4b16a9489 100644 --- a/django/cantusdb_project/main_app/views/chant.py +++ b/django/cantusdb_project/main_app/views/chant.py @@ -1193,7 +1193,7 @@ def get_initial(self): initial = super().get_initial() chant = self.get_object() has_syl_text = bool(chant.manuscript_syllabized_full_text) - syls_text = syllabify_text( + syls_text, _ = syllabify_text( text=chant.get_best_text_for_syllabizing(), clean_text=True, text_presyllabified=has_syl_text,