Tuesday, November 26, 2019

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

Can you try to add to the view class this argument?


pk_url_kwarg = 'circuitid'

And check what query is doing with django-debug-toolbar

Missatge de Gil Obradors <gil.obradors@gmail.com> del dia dt., 26 de nov. 2019 a les 17:01:
May be,

Or you aren t querying for circuitid ( by view class code) , normally the urls are with the int pk parameter...
For this, django-debug-toolbar can help to see what are you quering to db, i recommend to install and play with this great tool

I will read about, i want to know whats happening




El dt., 26 de nov. 2019, 16:47, Patrick Carra <pcarra.pc@gmail.com> va escriure:
Could it possibly be that it is trying to match this entire value? /viewLit/edit/circuit/STTK-100G-18040-01-WRBB/ and if so what am I doing wrong in my urls and views that I am not dropping /viewLit/edit/circuit/?

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0f2a1551-27b4-42c0-b251-e17dcb264ab2%40googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAK-JoTTOwuvpLG2M_C2wg3bH5Zuy0_hjApakBwtDpE43OSNmPA%40mail.gmail.com.

No comments:

Post a Comment