replace drf by django-ninja

This commit is contained in:
thomas girod committed 2024-07-23 19:57:33 +02:00
1 parent d9531838f2
commit 3046438cb1
43 files changed
+1001 -1191

No files matched your search

+2 -2
View File
@@ -84,10 +84,10 @@
}
function download_pictures() {
$("#download_all_pictures").prop("disabled", true);
var xhr = new XMLHttpRequest();
const xhr = new XMLHttpRequest();
$.ajax({
type: "GET",
url: "{{ url('api:all_pictures_of_user', user=object.id) }}",
url: "{{ url('api:pictures') }}?users_identified={{ object.id }}",
tryCount: 0,
xhr: function(){
return xhr;