summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2017-12-19 14:01:16 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2017-12-19 14:01:16 +0100
commit9db330755e89eb233900474fcf454320eb5f678c (patch)
tree6b414c2d12954422e6fb43981b36a4829a8ca54f
parentecb3a1980b3e2363698a1060919158b1106cfdf6 (diff)
downloadbank-9db330755e89eb233900474fcf454320eb5f678c.tar.gz
bank-9db330755e89eb233900474fcf454320eb5f678c.tar.bz2
bank-9db330755e89eb233900474fcf454320eb5f678c.zip
remove artificial line striker
-rw-r--r--talerbank/app/templates/profile_page.html3
-rw-r--r--talerbank/app/urls.py1
-rw-r--r--talerbank/app/views.py8
3 files changed, 0 insertions, 12 deletions
diff --git a/talerbank/app/templates/profile_page.html b/talerbank/app/templates/profile_page.html
index 07a4dcf..6b465a0 100644
--- a/talerbank/app/templates/profile_page.html
+++ b/talerbank/app/templates/profile_page.html
@@ -179,9 +179,6 @@
cancelled
{% endif %}">{{ item.subject }}
</td>
- <td>
- <a href="/strike?row_id={{ item.row_id }}">strike this line</a>
- </td>
</tr>
{% endfor %}
</tbody>
diff --git a/talerbank/app/urls.py b/talerbank/app/urls.py
index 6e97b89..c44c7c3 100644
--- a/talerbank/app/urls.py
+++ b/talerbank/app/urls.py
@@ -29,7 +29,6 @@ urlpatterns = [
url(r'^profile$', views.profile_page, name="profile"),
url(r'^history$', views.serve_history, name="history"),
url(r'^reject$', views.reject, name="reject"),
- url(r'^strike$', views.strike, name="strike"),
url(r'^withdraw$', views.withdraw_nojs, name="withdraw-nojs"),
url(r'^public-accounts$', views.serve_public_accounts, name="public-accounts"),
url(r'^public-accounts/(?P<name>[a-zA-Z0-9 ]+)$',
diff --git a/talerbank/app/views.py b/talerbank/app/views.py
index 7ad8f45..a231402 100644
--- a/talerbank/app/views.py
+++ b/talerbank/app/views.py
@@ -519,14 +519,6 @@ def auth_and_login(request):
username=username,
password=password)
-@login_required
-def strike(request):
- # FIXME: to be soon removed
- trans = BankTransaction.objects.get(id=request.GET["row_id"])
- trans.cancelled = True
- trans.save()
- return redirect("profile")
-
@transaction.atomic
@csrf_exempt
@require_http_methods(["PUT", "POST"])