revert remove csrf token, get add/coin working again - refactored due to testing ...

This commit is contained in:
willipink 2021-11-01 14:20:48 +00:00
parent c7fe33d438
commit 60253d2aeb
3 changed files with 2 additions and 1 deletions

View File

@ -340,7 +340,7 @@ $(document).ready(function() {
$.ajax({
type: 'POST',
url: 'add/coin',
url: 'add/coin/' + String(country) + '/' + String(year) + '/' + String(value),
data: data,
dataType: 'json',
td: td,

View File

@ -21,6 +21,7 @@
</button>
</div>
<div class="modal-body">
{% csrf_token %}
<div class="form-group">
<label for="login_name">Name</label>
<input type="text" name="username" id="login_name" class="form-control">

Binary file not shown.