Skip to content

Commit

Permalink
Revert admission view back (#813)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmi4er4 authored Feb 21, 2024
1 parent 033e3aa commit 360d3f2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion lk_yandexdataschool_ru/apps/application/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@


@pytest.mark.django_db
@pytest.mark.skip(reason="Temporary disabled as form with no campaigns needed")
def test_view_application_form_no_campaigns(client):
url = reverse('application_form')
response = client.get(url)
Expand Down
4 changes: 1 addition & 3 deletions lk_yandexdataschool_ru/apps/application/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ def get_context_data(self, **kwargs):
.values('value', 'label', 'campaign_id')
)

# show_form must be len(always_allow_campaigns) > 0
# Temporary made True for curator purposes
show_form = True
show_form = len(always_allow_campaigns) > 0
context["show_form"] = show_form
utm_params = ["utm_source", "utm_medium", "utm_campaign", "utm_term", "utm_content"]
utm = {param: self.request.GET.get(param) for param in utm_params}
Expand Down

0 comments on commit 360d3f2

Please sign in to comment.