display the license field on package descriptions

This commit is contained in:
Dusty Phillips 2009-01-01 12:36:13 -05:00
parent 945c52710a
commit b3b52f5d69
2 changed files with 4 additions and 0 deletions

View File

@ -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'

View File

@ -38,6 +38,9 @@ <h2 class="title">{{ pkg.pkgname }} {{ pkg.pkgver }}-{{ pkg.pkgrel }}</h2>
</tr><tr>
<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>