diff options
author | Dan McGee <dan@archlinux.org> | 2012-04-03 14:44:02 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-04-03 14:44:16 -0500 |
commit | b1a9818ddee0e3d0cd4d47b6dbf1c1409992227b (patch) | |
tree | 4e3abeabc346e40e514a053a620a5db898e7425e | |
parent | d9e5cbf546536e4a14e7f3cb591631515112a205 (diff) |
Include category when linking to bug reports
Also change the default category to something legit.
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | main/models.py | 2 | ||||
-rw-r--r-- | packages/templatetags/package_extras.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/main/models.py b/main/models.py index 34cbcd17..db926dda 100644 --- a/main/models.py +++ b/main/models.py @@ -115,7 +115,7 @@ class Repo(models.Model): help_text="Is this repo meant for package staging?") bugs_project = models.SmallIntegerField(default=1, help_text="Flyspray project ID for this repository.") - bugs_category = models.SmallIntegerField(default=0, + bugs_category = models.SmallIntegerField(default=2, help_text="Flyspray category ID for this repository.") svn_root = models.CharField(max_length=64, help_text="SVN root (e.g. path) for this repository.") diff --git a/packages/templatetags/package_extras.py b/packages/templatetags/package_extras.py index 5cc826ed..975f59f1 100644 --- a/packages/templatetags/package_extras.py +++ b/packages/templatetags/package_extras.py @@ -110,6 +110,7 @@ def bugs_list(package): url = "https://bugs.archlinux.org/" data = { 'project': package.repo.bugs_project, + 'cat[]': package.repo.bugs_category, 'string': package.pkgname, } return link_encode(url, data) |