0001-lingo-manager-got-back-to-list-liew-after-edition-ca.patch
combo/apps/lingo/templates/lingo/paymentbackend_form.html | ||
---|---|---|
16 | 16 |
{{ form.as_p }} |
17 | 17 |
<div class="buttons"> |
18 | 18 |
<button class="submit-button">{% trans "Save" %}</button> |
19 |
<a class="cancel" href="{% url 'lingo-manager-homepage' %}">{% trans 'Cancel' %}</a>
|
|
19 |
<a class="cancel" href="{% url 'lingo-manager-paymentbackend-list' %}">{% trans 'Cancel' %}</a>
|
|
20 | 20 |
</div> |
21 | 21 |
</form> |
22 | 22 |
{% endblock %} |
combo/apps/lingo/templates/lingo/regie_form.html | ||
---|---|---|
16 | 16 |
{{ form.as_p }} |
17 | 17 |
<div class="buttons"> |
18 | 18 |
<button class="submit-button">{% trans "Save" %}</button> |
19 |
<a class="cancel" href="{% url 'lingo-manager-homepage' %}">{% trans 'Cancel' %}</a>
|
|
19 |
<a class="cancel" href="{% url 'lingo-manager-regie-list' %}">{% trans 'Cancel' %}</a>
|
|
20 | 20 |
</div> |
21 | 21 |
</form> |
22 | 22 |
{% endblock %} |
tests/test_lingo_manager.py | ||
---|---|---|
66 | 66 |
regie = Regie.objects.all()[0] |
67 | 67 |
assert regie.description == 'other description' |
68 | 68 | |
69 |
resp = app.get('/manage/lingo/regies/%s/edit' % regie.pk, status=200) |
|
70 |
assert '/manage/lingo/regies/' in resp.text |
|
71 | ||
69 | 72 |
def test_delete_regie(app, admin_user, payment_backend): |
70 | 73 |
test_add_regie(app, admin_user, payment_backend) |
71 | 74 |
app = login(app) |
... | ... | |
272 | 275 |
assert resp.location.endswith('/manage/lingo/paymentbackends/') |
273 | 276 |
payment_backend = PaymentBackend.objects.get(slug='slug1') |
274 | 277 |
assert payment_backend.label == 'label1-modified' |
278 | ||
279 |
resp = app.get('/manage/lingo/paymentbackends/%s/edit' % payment_backend.pk, status=200) |
|
280 |
assert '/manage/lingo/paymentbackends/' in resp.text |
|
275 |
- |