From 4be747582f936ee4a06a5c6447d3fc1ef7d48534 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Wed, 6 Mar 2013 18:30:00 +0000 Subject: [PATCH] Add a short description for branches to show in drop-down Allows you to add e.g. "old stable" next to the denzil branch for clarification. Signed-off-by: Paul Eggleton --- layerindex/models.py | 1 + templates/base.html | 13 ++++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/layerindex/models.py b/layerindex/models.py index aaa79bc..b581d8d 100644 --- a/layerindex/models.py +++ b/layerindex/models.py @@ -14,6 +14,7 @@ import re class Branch(models.Model): name = models.CharField(max_length=50) bitbake_branch = models.CharField(max_length=50) + short_description = models.CharField(max_length=50, blank=True) class Meta: verbose_name_plural = "Branches" diff --git a/templates/base.html b/templates/base.html index 1586338..bd6ed47 100644 --- a/templates/base.html +++ b/templates/base.html @@ -39,11 +39,14 @@