Re: Method 'allow_tags' doesn't work?

2007-11-16 Thread wowar
> Today, after updating django to revision 6678 method 'allow_tags' > doesn't work. Despite it is set to True I've got html code. mark_safe() is a solution e.g. from django.utils.safestring import mark_safe class Ewidencja(models.Model): ... data_przyjecia = models.DateField('data przyj

Method 'allow_tags' doesn't work?

2007-11-15 Thread wowar
Today, after updating django to revision 6678 method 'allow_tags' doesn't work. Despite it is set to True I've got html code. Regards, WW --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: Emtpy ForeignKey fields shown as "(None)" in the admin site

2007-09-21 Thread wowar
You can change your template, eg. in change_list_results.html I did something like this: {% for result in results %} {% for item in result %}{% ifequal item "(None)" %}{% else %}{{ item }}{% endifequal %} {% endfor %} {% endfor %} --~--~-~--~~~---~--~~ You rece