Re: mark_safe() not working for me

2008-11-25 Thread Lars Stavholm
Right you are Daniel, works like a charm, thank you! /L Daniel Roseman wrote: > On Nov 25, 4:50 pm, Lars Stavholm <[EMAIL PROTECTED]> wrote: >> I'm trying to influence one of the admin interface change list >> fields by using the below get_progress() method in list_display, >> and using

Re: mark_safe() not working for me

2008-11-25 Thread Daniel Roseman
On Nov 25, 4:50 pm, Lars Stavholm <[EMAIL PROTECTED]> wrote: > I'm trying to influence one of the admin interface change list > fields by using the below get_progress() method in list_display, > and using mark_safe(). > > However, I can't get this to work: > > class Job(models.Model): >      

mark_safe() not working for me

2008-11-25 Thread Lars Stavholm
I'm trying to influence one of the admin interface change list fields by using the below get_progress() method in list_display, and using mark_safe(). However, I can't get this to work: class Job(models.Model): progress = models.PositiveSmallIntegerField() def get_progress(self):