From 2d0a041540cb9b4b5df7aea2583922302b3ba37b Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Tue, 12 Aug 2025 22:05:22 +0200 Subject: [PATCH] Remove unused bgcolor field This was moved to CSS a long time ago, no need to keep a potentially out of sync copy in the model file. --- pgweb/featurematrix/models.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pgweb/featurematrix/models.py b/pgweb/featurematrix/models.py index bf506472..bfbb2b30 100644 --- a/pgweb/featurematrix/models.py +++ b/pgweb/featurematrix/models.py @@ -1,10 +1,10 @@ from django.db import models choices_map = { - 0: {'str': 'No', 'class': 'no', 'bgcolor': '#ffdddd'}, - 1: {'str': 'Yes', 'class': 'yes', 'bgcolor': '#ddffdd'}, - 2: {'str': 'Obsolete', 'class': 'obs', 'bgcolor': '#ddddff'}, - 3: {'str': '?', 'class': 'unk', 'bgcolor': '#ffffaa'}, + 0: {'str': 'No', 'class': 'no'}, + 1: {'str': 'Yes', 'class': 'yes'}, + 2: {'str': 'Obsolete', 'class': 'obs'}, + 3: {'str': '?', 'class': 'unk'}, } choices = [(k, v['str']) for k, v in list(choices_map.items())] -- 2.39.5