Re: Admin: raw-id: Link to edit page

2009-08-03 Thread Michel Thadeu Sabchuk
Hi Thomas, > If you use raw_id the ID of the foreign key gets displayed right to the > input field. It would be nice to make it a hyperlink. I use this ticket to get what you want: http://code.djangoproject.com/ticket/7923 It would be good to have this ticket applied on django trunk ;) Best

Re: Admin: raw-id: Link to edit page

2009-08-03 Thread Peter Bengtsson
I see. I don't know how to make a link to the City in the Place edit page next to the City drop-down. You can put special links or things like that in the edit page at the top just above the fieldset. You first create a template called: templates/admin/// change_form.html And then do something

Re: Admin: raw-id: Link to edit page

2009-08-03 Thread Thomas Guettler
Thank you Peter. But list_display does not get used on the edit page of an object. If you use raw_id the ID of the foreign key gets displayed right to the input field. It would be nice to make it a hyperlink. HTH, Thomas Peter Bengtsson schrieb: > > > On 3 Aug, 10:12, Thomas Guettler

Re: Admin: raw-id: Link to edit page

2009-08-03 Thread Peter Bengtsson
On 3 Aug, 10:12, Thomas Guettler wrote: > Hi, > > How can I display a link to the edit page of a foreign key? > > Example: > > class Place: >     city=models.ForeignKey(City) > > In the admin page of the place I want a link to the city admin page. > class

Admin: raw-id: Link to edit page

2009-08-03 Thread Thomas Guettler
Hi, How can I display a link to the edit page of a foreign key? Example: class Place: city=models.ForeignKey(City) In the admin page of the place I want a link to the city admin page. Regards, Thomas Güttler -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*)