Hi,

The problem you are having is that the ID you are sending to your
deleteTask angular method is undefined - that's what the log shows. Check
the angular code to see why you are not sending a valid id to the
deleteTask method. This has nothing to do with the rest api - it is
functioning perfectly - the issue is that the rest api can't find the task
with id of "undefined" - and "undefined" is what you get when you use a
javascript variable before it's declared.

Regards,

Andréas


Den fre 24 apr. 2020 kl 18:38 skrev ola neat <tosinayoo...@gmail.com>:

> i'm working on with django rest-api & angular but i'm having issues making
> a delete request to my model
> see below my url, apiView, angular-api-delete-request codes and err msg
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHLKn7118zWmHs95pq%2BFtPg9QmDjvJ6OkEi4JNtuH22fffLQ1w%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHLKn7118zWmHs95pq%2BFtPg9QmDjvJ6OkEi4JNtuH22fffLQ1w%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK4qSCfoy60rifOZa58ekA3ZxtvCwUB8%2BwLkpRfDYD-NAALuSA%40mail.gmail.com.

Reply via email to