A django app with an abstract model which helps to define tree style models with unlimited sub branches
Project description
========
Django SimpleTree
========
This is a simple Django apllication that provide an abstract class to create tree style models.
Using this model we can define unlimited number of subbranches only by one model class.
It also provides a django admin abstract class which helps to have a tree style list in the admin site.
Installation
============
Install the application package using pip::
pip install django-simpletree
add 'simpletree' to the INSTALLED_APPS list on your settings file
How to use
==========
Import the Node abstract model from simpletree and use it to create your tree style model::
from simpletree.models import Node
class MyModel(Node):
pass
In your application admin.py file import the NodeAdmin abstract ModelAdmin class and use it to register your model to the admin site::
from simpletree.admin import NodeAdmin
class MyAdmin(NodeAdmin):
class Meta:
model = MyModel
Django SimpleTree
========
This is a simple Django apllication that provide an abstract class to create tree style models.
Using this model we can define unlimited number of subbranches only by one model class.
It also provides a django admin abstract class which helps to have a tree style list in the admin site.
Installation
============
Install the application package using pip::
pip install django-simpletree
add 'simpletree' to the INSTALLED_APPS list on your settings file
How to use
==========
Import the Node abstract model from simpletree and use it to create your tree style model::
from simpletree.models import Node
class MyModel(Node):
pass
In your application admin.py file import the NodeAdmin abstract ModelAdmin class and use it to register your model to the admin site::
from simpletree.admin import NodeAdmin
class MyAdmin(NodeAdmin):
class Meta:
model = MyModel
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
django_simpletree-0.1.tar.gz
(2.6 kB
view hashes)