diff options
author | Dusty Phillips <buchuki@gmail.com> | 2009-01-01 18:36:13 +0100 |
---|---|---|
committer | Dusty Phillips <buchuki@gmail.com> | 2009-01-01 18:36:13 +0100 |
commit | b3b52f5d69087a391b87b5eda693d99f8b2c1811 (patch) | |
tree | 957f15b1b8524f833034867869c9b03a2e34e292 | |
parent | 945c52710ab7374f12fc0b66729beaef5e59b5b4 (diff) | |
download | archweb-b3b52f5d69087a391b87b5eda693d99f8b2c1811.tar.gz archweb-b3b52f5d69087a391b87b5eda693d99f8b2c1811.tar.xz |
display the license field on package descriptions
-rw-r--r-- | main/models.py | 1 | ||||
-rw-r--r-- | templates/packages/details.html | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/main/models.py b/main/models.py index d48aa36..bcd8ddb 100644 --- a/main/models.py +++ b/main/models.py @@ -141,6 +141,7 @@ class Package(models.Model): pkgdesc = models.CharField(max_length=255) url = models.CharField(max_length=255) last_update = models.DateTimeField(null=True, blank=True) + license = models.CharField(max_length=255) objects = PackageManager() class Meta: db_table = 'packages' diff --git a/templates/packages/details.html b/templates/packages/details.html index 43a1e66..3a69bf2 100644 --- a/templates/packages/details.html +++ b/templates/packages/details.html @@ -39,6 +39,9 @@ <th>Upstream URL:</th> <td><a href="{{ pkg.url }}">{{ pkg.url }}</a></td> </tr><tr> + <th>License:</th> + <td>{{ pkg.license }}</td> + </tr><tr> <th>Maintainer:</th> <td>{% if pkg.maintainer %}{{ pkg.maintainer.get_full_name }}{% else %}None{% endif %}</td> </tr><tr> |