diff options
author | Dan McGee <dan@archlinux.org> | 2011-02-07 19:48:12 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-02-15 20:51:11 +0100 |
commit | 376ce4a69e016d13eff28589a5caa627bf7c451b (patch) | |
tree | 347ffffa3db13e4d8a4f3c49379e6e3c28139de1 /templates | |
parent | 8c5358e88898c4eb620a132133c57a26f191dee1 (diff) | |
download | archweb-376ce4a69e016d13eff28589a5caa627bf7c451b.tar.gz archweb-376ce4a69e016d13eff28589a5caa627bf7c451b.tar.xz |
Clean up Package related objects code
Main change is just to move groups from the default packagegroup_set
location to a related_name of groups. Also refer to the Package class
directly rather than by text string if we have it available.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/packages/details.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/packages/details.html b/templates/packages/details.html index fcbaf08..de6b637 100644 --- a/templates/packages/details.html +++ b/templates/packages/details.html @@ -112,7 +112,7 @@ <td>{{ pkg.license }}</td> </tr><tr> <th>Groups:</th> - {% with pkg.packagegroup_set.all as groups %} + {% with pkg.groups.all as groups %} <td>{% if groups %} {% for g in groups %} <a href="/groups/{{ pkg.arch.name }}/{{ g.name }}/" |