diff options
author | Dan McGee <dan@archlinux.org> | 2011-02-07 12:48:12 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-02-15 13:51:11 -0600 |
commit | 376ce4a69e016d13eff28589a5caa627bf7c451b (patch) | |
tree | 347ffffa3db13e4d8a4f3c49379e6e3c28139de1 /templates/packages | |
parent | 8c5358e88898c4eb620a132133c57a26f191dee1 (diff) |
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/packages')
-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 fcbaf083..de6b637f 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 }}/" |