diff options
Diffstat (limited to 'pgweb/downloads/struct.py')
-rw-r--r-- | pgweb/downloads/struct.py | 6 |
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 |