summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDusty Phillips <buchuki@gmail.com>2009-01-01 12:36:13 -0500
committerDusty Phillips <buchuki@gmail.com>2009-01-01 12:36:13 -0500
commitb3b52f5d69087a391b87b5eda693d99f8b2c1811 (patch)
tree957f15b1b8524f833034867869c9b03a2e34e292
parent945c52710ab7374f12fc0b66729beaef5e59b5b4 (diff)
display the license field on package descriptions
-rw-r--r--main/models.py1
-rw-r--r--templates/packages/details.html3
2 files changed, 4 insertions, 0 deletions
diff --git a/main/models.py b/main/models.py
index d48aa364..bcd8ddb2 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 43a1e662..3a69bf2e 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>