pnp-software / cordetfw-pus

PUS Extension of the CORDET Framework
Mozilla Public License 2.0
2 stars 1 forks source link

Impact of Empty Title #9

Closed pasetti closed 1 year ago

pasetti commented 1 year ago

If item S appears in a pull-down menu, it is described through its 'title' attribute. I now have many categories where the item's description is in the 'desc' field and the 'title' is empty. This results in entries in pull-down menus not have any description.

The displayed text comes from this code in model.py:

    def __str__(self):
        return self.domain + ':' + self.name + ' (' + self.title + ')'
pasetti commented 1 year ago

fixed: we now display the 'desc' field if the 'title' field is empty