Pierre-Sassoulas / django-survey

A django survey app that can export results as CSV or PDF using your native language.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

String 'None' is displayed if category description is empty

maximloginov opened this issue · comments

Value category.description is not checked against None in the template

<p> {{category.description}} </p>

It would be nicer to have something like {{category.description|default_if_none:""}} there

(I would make a PR request, but I cannot test is easily)

There's fixtures in the existing tests, you can add a null description and load the fixtures to check manually.