Skip to main content

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

Project details


Release history Release notifications | RSS feed

This version

0.1

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

If you're not sure about the file name format, learn more about wheel file names.

django_simpletree-0.1.tar.gz (2.6 kB view details)

Uploaded Source

django_simpletree-0.1.2.tar.gz (2.6 kB view details)

Uploaded Source

django_simpletree-0.1.1.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file django_simpletree-0.1.tar.gz.

File metadata

File hashes

Hashes for django_simpletree-0.1.tar.gz
Algorithm Hash digest
SHA256 a2d060390b601d97cdd2dc49122d489e77d76493e6cbe6d7559b4e8f853b0ad8
MD5 8d6f50ddd51d0cd450d199d9c3d2bc46
BLAKE2b-256 155281e35be4b84067d87a0729a3083b105acc5a186b7d40ee3c80d0806de542

See more details on using hashes here.

File details

Details for the file django_simpletree-0.1.2.tar.gz.

File metadata

File hashes

Hashes for django_simpletree-0.1.2.tar.gz
Algorithm Hash digest
SHA256 df14ca62ec80024572c437fb8aebf0526a188e4ab9f4835e05c51c7d71928c2b
MD5 8030233a8952ff0210bb3e439fb4066f
BLAKE2b-256 bb25f5907ae7e6dc2624646822479683bb4f2d78538083dce4788285d0d06150

See more details on using hashes here.

File details

Details for the file django_simpletree-0.1.1.tar.gz.

File metadata

File hashes

Hashes for django_simpletree-0.1.1.tar.gz
Algorithm Hash digest
SHA256 bdfef370974a4a33348f34cad686805f8b666f45a37671e8bd5711c339c89861
MD5 f6eaf04c4179515963d1666cdf0df0ff
BLAKE2b-256 e6914dfa65b0c99d27564ce9ab144bdaa4827a097eb07ce30e0a400939a69dae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page