Skip to content
This repository was archived by the owner on Dec 5, 2023. It is now read-only.

Commit d4f6e6f

Browse files
authored
Re-enable link to questionnaire (#653)
* Re-enable link to questionnaire * Fix broken test
1 parent dd018cd commit d4f6e6f

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

td/templates/resources/language_list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ <h2>Languages</h2>
2727
<tbody>
2828
</tbody>
2929
</table>
30-
{# <p>If you don't see a language you expect to see it probably isn't in our database. You can request its creation <a href="{% url "templanguage_create" %}">here</a></p>#}
30+
<p>If you don't see a language you expect to see it probably isn't in our database. You can request its creation <a href="{% url "templanguage_create" %}">here</a></p>
3131
{% endblock %}

td/tests/test_views.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,7 @@ def test_get_with_user(self):
177177
Requesting temporary language creation form should return a success response
178178
"""
179179
response = TempLanguageWizardView.as_view()(self.request)
180-
# self.assertEqual(response.status_code, 200)
181-
self.assertEqual(response.status_code, 302)
180+
self.assertEqual(response.status_code, 200)
182181

183182
def test_init(self):
184183
"""

td/views.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -669,9 +669,6 @@ class TempLanguageWizardView(LoginRequiredMixin, SessionWizardView):
669669
form_list = [forms.Form]
670670
template_name = "resources/templanguage_wizard_form.html"
671671

672-
def get(self, request, *args, **kwargs):
673-
return redirect("home")
674-
675672
def __init__(self, *args, **kwargs):
676673
super(TempLanguageWizardView, self).__init__(*args, **kwargs)
677674
self.questionnaire = Questionnaire.objects.latest('created_at')

0 commit comments

Comments
 (0)