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({ $.ajax({
type: 'POST', type: 'POST',
url: 'add/coin', url: 'add/coin/' + String(country) + '/' + String(year) + '/' + String(value),
data: data, data: data,
dataType: 'json', dataType: 'json',
td: td, td: td,

View File

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

Binary file not shown.