On 5/25/06, qhfgva <[EMAIL PROTECTED]> wrote: > > In order to fit more columns of data on the screen in the admin, I > tried the following: > > # for use in list_display > def combined_cols(self): > return '%s<br>%s<br>%s' % (self.col1, self.col2,sel.col3) > > Which displayed the '<br>' in the output. > > Is there some way to prevent the output from being html escaped in this > case? Or is there some other way to format columns in a more condensed > form?
Yep. Set an allow_tags attribute on your method to True. def combined_cols(self): return '%s<br>%s<br>%s' % (self.col1, self.col2,sel.col3) combined_cols.allow_tags = True Joseph --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---