diff options
Diffstat (limited to 'packages/models.py')
-rw-r--r-- | packages/models.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/models.py b/packages/models.py index c217a692..5aa213d1 100644 --- a/packages/models.py +++ b/packages/models.py @@ -31,4 +31,14 @@ class PackageGroup(models.Model): def __unicode__(self): return self.name +class License(models.Model): + pkg = models.ForeignKey('main.Package', related_name='licenses') + name = models.CharField(max_length=255) + + def __unicode__(self): + return self.name + + class Meta: + ordering = ['name'] + # vim: set ts=4 sw=4 et: |