summaryrefslogtreecommitdiff
path: root/pgweb/downloads/struct.py
diff options
context:
space:
mode:
authorMagnus Hagander2011-07-12 13:16:20 +0000
committerMagnus Hagander2011-07-12 13:16:20 +0000
commitbd8ac3b59964d53837b74206fc63ed49610f62d9 (patch)
tree667a42a8ca10b6b2ac69f70c44ff153e3bd18777 /pgweb/downloads/struct.py
parentf136a665feda295ed23dfc66815b520f42e9f01c (diff)
Fix sitemap for product catalog
Diffstat (limited to 'pgweb/downloads/struct.py')
-rw-r--r--pgweb/downloads/struct.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pgweb/downloads/struct.py b/pgweb/downloads/struct.py
index d18ef55e..8a74e859 100644
--- a/pgweb/downloads/struct.py
+++ b/pgweb/downloads/struct.py
@@ -4,12 +4,12 @@ from datetime import date
from django.conf import settings
-from models import Product
+from models import Category
def get_struct():
# Products
- for p in Product.objects.filter(approved=True):
- yield ('download/products/%s/' % p.category_id,
+ for c in Category.objects.all():
+ yield ('download/products/%s/' % c.id,
0.3)
# FTP browser