0001-lingo-callback_url-is-not-displayed-as-a-link-56646.patch
combo/apps/lingo/templates/lingo/paymentbackend_form.html | ||
---|---|---|
12 | 12 |
{% block content %} |
13 | 13 |
<form method="post" enctype="multipart/form-data"> |
14 | 14 |
{% if object.id and callback_url %} |
15 |
<p><label>{% trans "Callback URL:" %}</label> <a href="{{ callback_url }}">{{ callback_url }}</a></p>
|
|
15 |
<p><label>{% trans "Callback URL:" %}</label> {{ callback_url }}</p>
|
|
16 | 16 |
{% endif %} |
17 | 17 |
{% csrf_token %} |
18 | 18 |
{{ form.as_p }} |
combo/apps/lingo/templates/lingo/regie_form.html | ||
---|---|---|
12 | 12 |
{% block content %} |
13 | 13 |
<form method="post" enctype="multipart/form-data"> |
14 | 14 |
{% if object.id and callback_url %} |
15 |
<p><label>{% trans "Callback URL:" %}</label> <a href="{{ callback_url }}">{{ callback_url }}</a></p>
|
|
15 |
<p><label>{% trans "Callback URL:" %}</label> {{ callback_url }}</p>
|
|
16 | 16 |
{% endif %} |
17 | 17 |
{% csrf_token %} |
18 | 18 |
{{ form.as_p }} |
tests/test_lingo_manager.py | ||
---|---|---|
69 | 69 |
assert '/manage/lingo/regies/' in resp.text |
70 | 70 | |
71 | 71 |
# callback URL is shown |
72 |
assert 'Callback URL' in resp |
|
73 |
assert 'http://testserver/lingo/callback-payment-backend/%s/' % payment_backend.slug in resp |
|
72 |
assert ( |
|
73 |
'<p><label>Callback URL:</label> http://testserver/lingo/callback-payment-backend/%s/</p>' |
|
74 |
% payment_backend.slug |
|
75 |
in resp |
|
76 |
) |
|
74 | 77 | |
75 | 78 |
resp.forms[0]['description'] = 'other description' |
76 | 79 |
resp = resp.forms[0].submit() |
... | ... | |
636 | 639 |
assert '/manage/lingo/paymentbackends/' in resp.text |
637 | 640 | |
638 | 641 |
# callback URL is shown |
639 |
assert 'Callback URL' in resp |
|
640 |
assert 'http://testserver/lingo/callback-payment-backend/%s' % payment_backend.slug in resp |
|
642 |
assert ( |
|
643 |
'<p><label>Callback URL:</label> http://testserver/lingo/callback-payment-backend/%s/</p>' |
|
644 |
% payment_backend.slug |
|
645 |
in resp |
|
646 |
) |
|
641 | 647 | |
642 | 648 |
# service cannot be changed |
643 | 649 |
assert 'disabled' in resp.form['service'].attrs |
644 |
- |