summaryrefslogtreecommitdiffstats
path: root/packages/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-07-23 20:14:31 +0200
committerDan McGee <dan@archlinux.org>2010-07-25 22:49:06 +0200
commit63696563a3955d968103bddf6b854798a661da5c (patch)
tree885bc76c1ca112fed71cc46926d4cde356aa15c0 /packages/models.py
parent05c943b3a3a10fcf9d27cb7b08a856b5360769bb (diff)
downloadarchweb-63696563a3955d968103bddf6b854798a661da5c.tar.gz
archweb-63696563a3955d968103bddf6b854798a661da5c.tar.xz
Add package groups model and display to packages
They show up but aren't hotlinked to anything...just yet. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages/models.py')
-rw-r--r--packages/models.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/models.py b/packages/models.py
index 9eff517..70ac4fe 100644
--- a/packages/models.py
+++ b/packages/models.py
@@ -20,4 +20,12 @@ class PackageRelation(models.Model):
class Meta:
unique_together = (('pkgbase', 'user', 'type'),)
+class PackageGroup(models.Model):
+ '''
+ Represents a group a package is in. There is no actual group entity,
+ only names that link to given packages.
+ '''
+ pkg = models.ForeignKey('main.Package')
+ name = models.CharField(max_length=255)
+
# vim: set ts=4 sw=4 et: