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

https://docs.djangoproject.com/en/2.2/ref/class-based-views/mixins-single-object/#django.views.generic.detail.SingleObjectMixin.pk_url_kwarg
pk_url_kwarg = 'circuitid'

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

Missatge de Gil Obradors <gil.obrad...@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...@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+unsubscr...@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
>> <https://groups.google.com/d/msgid/django-users/0f2a1551-27b4-42c0-b251-e17dcb264ab2%40googlegroups.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/CAK-JoTTOwuvpLG2M_C2wg3bH5Zuy0_hjApakBwtDpE43OSNmPA%40mail.gmail.com.

Reply via email to