Commit 4d64e3ab authored by Vasyl Bodnaruk's avatar Vasyl Bodnaruk Committed by Andrii Marynets

remake pages

parent 5d01e81a
......@@ -71,7 +71,7 @@ $(document).ready(function() {
dataType: 'json', //mispelled
data: JSON.stringify(data),
url: url,
async: false,
async: true,
contentType: "application/json; charset=utf-8",
success: function (msg) {
console.log(msg);
......
......@@ -22,7 +22,7 @@ class ListNewsView(ListView):
if type_request in ['delete', 'deleteAll']:
self._delete(ids)
if type_request == 'edit':
return HttpResponseRedirect(reverse('list_news'), kwargs={'id': ids})
return HttpResponseRedirect(reverse('single_news', kwargs={'id': ids}))
return HttpResponseRedirect(reverse('list_news'))
def _delete(self, id):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment