Re: Need "edit" and "delete" buttons on each line of a rendered table

2012-01-16 Thread Bill Beal
Thanks, now I don't have to do the hard work as a noob. On Mon, Jan 16, 2012 at 9:23 AM, j_syk wrote: > This a good application for named urls with passing arguments. > > for example, given a urls.py containing > >url(r'^edit/(?P[0-9]+)/$', edit_item, name="edit_item"), > > in your template

Re: Need "edit" and "delete" buttons on each line of a rendered table

2012-01-16 Thread j_syk
This a good application for named urls with passing arguments. for example, given a urls.py containing url(r'^edit/(?P[0-9]+)/$', edit_item, name="edit_item"), in your template you can do this: {% for item in item_query %} Edit {% endfor %} Hope that helps! Named urls are the preferr

Re: Need "edit" and "delete" buttons on each line of a rendered table

2012-01-16 Thread Bill Beal
Thanks, I'll try that. On Mon, Jan 16, 2012 at 8:58 AM, Szabo, Patrick (LNG-VIE) < patrick.sz...@lexisnexis.at> wrote: > Hi, > > I'm doing the exact same thing. What i do is i add the id of the object of > a row to the url that the button is linking to. > Then I use urls.py and views.py to identi