ecolabdata / ecospheres-dashboard-backend

0 stars 0 forks source link

Treat empty as missing in exists checks #14

Open streino opened 23 hours ago

streino commented 23 hours ago

In most cases, it makes more sense to consider an empty string element (such as title, description, labels, ...) as missing instead of displaying an empty placeholder amongst other values.

In the rare cases we need to distinguish the two for a string type, we can explicitly use exists(... exclude=(None,)).