Gustavo Picon is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

tabo / django-treebeard

Efficient tree implementations for Django 1.0+ :: https://tabo.pe/projects/django-treebeard/

Clone this repository (size: 646.5 KB): HTTPS / SSH
hg clone https://bitbucket.org/tabo/django-treebeard
hg clone ssh://hg@bitbucket.org/tabo/django-treebeard
# -*- coding: utf-8 -*-
"""

    treebeard.admin
    ---------------

    Django admin support.

    :copyright: 2008, 2009 by Gustavo Picon
    :license: Apache License 2.0

    Original contribution by aleh.fl

"""

from django.contrib import admin

from treebeard.forms import TreeFormAdmin


class TreeAdmin(admin.ModelAdmin):
    """ Manages treebeard model. """
    change_list_template = 'admin/tree_change_list.html'
    form = TreeFormAdmin