Filter empty values in DetailView

Is there an easy way to force DetailView to ignore these fields in its attributes list, that for particular model are empty?

Or the only way is to define every attribute on attributes list with own function and filter empty fields inside it (sound like a little bit of madness)?

Edit: I thought, that this is pretty self-explanatory, but it turned out, it isn’t. So, basically, I want to force DetailView to ignore (not render) rows for these elements of attributes list, that have empty (null, empty string) values in corresponding model and thus would result in rendering empty table cell: