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

Commit

Permalink
Merge 38f1369 into dd018cd
Browse files Browse the repository at this point in the history
  • Loading branch information
vleong2332 committed Feb 9, 2017
2 parents dd018cd + 38f1369 commit d373a74
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion td/templates/resources/language_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ <h2>Languages</h2>
<tbody>
</tbody>
</table>
{# <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>#}
<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>
{% endblock %}
3 changes: 1 addition & 2 deletions td/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,7 @@ def test_get_with_user(self):
Requesting temporary language creation form should return a success response
"""
response = TempLanguageWizardView.as_view()(self.request)
# self.assertEqual(response.status_code, 200)
self.assertEqual(response.status_code, 302)
self.assertEqual(response.status_code, 200)

def test_init(self):
"""
Expand Down
3 changes: 0 additions & 3 deletions td/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -669,9 +669,6 @@ class TempLanguageWizardView(LoginRequiredMixin, SessionWizardView):
form_list = [forms.Form]
template_name = "resources/templanguage_wizard_form.html"

def get(self, request, *args, **kwargs):
return redirect("home")

def __init__(self, *args, **kwargs):
super(TempLanguageWizardView, self).__init__(*args, **kwargs)
self.questionnaire = Questionnaire.objects.latest('created_at')
Expand Down

0 comments on commit d373a74

Please sign in to comment.