Re: queryser variable from template to a view

2019-09-18 Thread Jani Tiainen
Well that is the side-effect of capturers they convert value to desired format. You can find documentation about pre-defined converters and how to register your own at https://docs.djangoproject.com/en/2.2/topics/http/urls/#path-converters ke 18. syysk. 2019 klo 19.33 Luca Bertolotti

Re: queryser variable from template to a view

2019-09-18 Thread Luca Bertolotti
Hello if i pass and in the view i do this def exmple(request,myvar): sort = myvar.order_by() i get an error because myvar is a string instead i near a query set Luca Il giorno mercoledì 18 settembre 2019 15:56:19 UTC+2, Jani Tiainen ha scritto: > > Hi. > > to the rescue! > >

Re: queryser variable from template to a view

2019-09-18 Thread Jani Tiainen
Hi. to the rescue! Also it is recommended to use {% url %} tag to construct urls not to hardcode them and once were there Django convention is to end urls to slash. ke 18. syysk. 2019 klo 15.53 Luca Bertolotti kirjoitti: > Hello i need to pass a query set from template to a view: > > > > in

queryser variable from template to a view

2019-09-18 Thread Luca Bertolotti
Hello i need to pass a query set from template to a view: in which way i have to define the urls file path('test//***what to write+++', views.test, name='test'), -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group