diff options
-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 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> |