revert remove csrf token, get add/coin working again - refactored due to testing ...
This commit is contained in:
parent
c7fe33d438
commit
60253d2aeb
@ -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,
|
||||||
|
@ -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.
Loading…
x
Reference in New Issue
Block a user