django-shop-simplecategories 0.0.5

A simple to use product categories module for django SHOP

This companion applicatoin to django SHOP provides an example of how shop implementors could implement a simple category system.

It is perfectly usable as a simple category system.

In basic setup, you can select products on category admin page. If you want to set categories in product admin page, subclass ProductWithCategoryForm, set Meta option model to your product model, and set this form as your product form:

from shop_simplecategories.admin import ProductWithCategoryForm

class ProductForm(ProductWithCategoryForm):
    class Meta(object):
        model = Product

class ProductAdmin(admin.ModelAdmin):
    form = ProductForm

For your convenience we have added a templatetag show_root_categories that outputs all root categories for you:

{% load shop_simplecategories_tags %}

<ul>{% show_root_categories %}</ul>

If you want to manipulate the output of that template tag, just override the template shop_simplecategories/show_root_categories.html

BSD License

Author

Christopher Glass

Pip

django-shop-simplecategories==0.0.5
File Type Python Version Uploaded On Downloads
django-shop-simplecategories-0.0.5.tar.gz Source July 14, 2011 2,584
Version Release Date
0.0.5 July 14, 2011
0.0.4 May 9, 2011
0.0.3 May 9, 2011
0.0.2 May 5, 2011
0.0.1 May 5, 2011
Date Package Version Action
Nov. 4, 2014, 1:48 p.m. django-shop-simplecategories 0.0.2 Release Created
Nov. 4, 2014, 1:48 p.m. django-shop-simplecategories 0.0.3 Release Created
Nov. 4, 2014, 1:48 p.m. django-shop-simplecategories 0.0.1 Release Created
Nov. 4, 2014, 1:48 p.m. django-shop-simplecategories 0.0.4 Release Created
Nov. 4, 2014, 1:48 p.m. django-shop-simplecategories 0.0.5 Release Created
Nov. 4, 2014, 1:48 p.m. django-shop-simplecategories Package Created