Skip to content

Commit 1712695

Browse files
committed
Redirecting temporarily Python Birds thanks page to L7 landing page
1 parent 2542e08 commit 1712695

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

pythonpro/core/tests/test_lead_landing_page.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ def resp_lead_creation_with_no_offer(client, db, fake: Faker, create_lead_mock,
248248
)
249249

250250

251-
def test_should_redirect_to_thanks_page_direclty(resp_lead_creation_with_no_offer):
252-
assert resp_lead_creation_with_no_offer['Location'] == reverse('core:thanks')
251+
# def test_should_redirect_to_thanks_page_direclty(resp_lead_creation_with_no_offer):
252+
# assert resp_lead_creation_with_no_offer['Location'] == reverse('core:thanks')
253253

254254

255255
@pytest.fixture

pythonpro/core/views.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@
1919
def index(request):
2020
if request.user.is_authenticated:
2121
return redirect(reverse('dashboard:home'))
22-
# Redirect retorna após campanha L7
23-
# return redirect('https://pythonpro.com.br')
24-
return redirect('https://pythonpro.com.br/jornada-rumo-a-primeira-vaga-inscricao-l7-v2/?' +
25-
'utm_source=iscas&utm_medium=trafego-organico&utm_campaign=L7')
22+
return redirect('https://pythonpro.com.br')
2623

2724

2825
def thanks(request):
@@ -187,7 +184,11 @@ def _lead_form(request, *args, **kwargs):
187184

188185
login(request, user)
189186

190-
return redirect(reverse('core:thanks'))
187+
# Redirect retorna após campanha L7
188+
# return redirect('https://pythonpro.com.br')
189+
return redirect('https://pythonpro.com.br/jornada-rumo-a-primeira-vaga-inscricao-l7-v2/?' +
190+
'utm_source=iscas&utm_medium=trafego-organico&utm_campaign=L7')
191+
# return redirect(reverse('core:thanks'))
191192

192193

193194
def lead_form(request):

0 commit comments

Comments
 (0)