display the license field on package descriptions
This commit is contained in:
parent
945c52710a
commit
b3b52f5d69
@ -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'
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user