Django-mptt-admin provides a nice Django Admin interface for Mptt models
Project description
Django-mptt-admin provides a nice Django Admin interface for [django-mptt models](http://django-mptt.github.io/django-mptt/). The source is available on [https://github.com/leukeleu/django-mptt-admin](https://github.com/leukeleu/django-mptt-admin). It uses the [jqTree](http://mbraak.github.io/jqTree/) library.
Requirements
The package is tested with Django (1.4 - 1.7), and django-mptt (0.6.0, 0.6.1). Also with Python 2.6, 2.7, 3.3 and 3.4.
Installation
Install the package:
$ pip install django_mptt_admin
Add django_mptt_admin to your installed apps in settings.py.
INSTALLED_APPS = ( .. 'django_mptt_admin', )
Use the DjangoMpttAdmin class in admin.py:
from django.contrib import admin from django_mptt_admin.admin import DjangoMpttAdmin from models import Country class CountryAdmin(DjangoMpttAdmin): pass admin.site.register(Country, CountryAdmin)
Options
tree_auto_open
Auto-open node. Default value is 1.
Values:
True: autopen all nodes
False: do not autoopen
integer: autopen until this level
tree_load_on_demand
Load on demand (True / False / level). Default is True.
True: load nodes on demand
False: do not load nodes on demand
int: load nodes on demand until this level
autoescape
Autoescape (True / False). Default is True.
Autoescape titles in tree.
Changelog
0.1.10 (september 24 2014)
Issue 31: added autoescape option
Issue 34: use the default change list in popup mode (thanks to hstanev)
Issue 36: the option tree_load_on_demand = False does not work
0.1.9 (july 12 2014)
Issue 25: update jqtree to 0.21.0
Issue 28: fixing problems related to working with model’s pk-field, named other than “id” (thanks to Igor Gai)
Issue 29: fix path to spinner.gif (thanks to Igor Gai)
0.1.8 (februari 2 2014)
Issue 17: handle error when moving node
Issue 18: do not use inline javascript
Issue 19: support Django 1.7 alpha
0.1.7 (january 3 2014)
Issue 16: moving a node fails if the node id is a uuid
0.1.6 (october 10 2013)
Issue 8: removing node from the tree causes the tree view to crash
0.1.5 (august 27 2013)
Issue 6: save the tree state
Issue 7: do not handle the right mouse click
0.1.4 (august 8 2013)
Issue 5: Support for uuid ids
0.1.3 (may 2 2013)
This version drops support for Django 1.3.7
Issue 2: Posting a screenshot in the readme would be really useful (thanks to Andy Baker)
Issue 3: Use static templatetag for CDN-compatible file paths (thanks to Alex Holmes)
Added [Coveralls](https://coveralls.io/r/leukeleu/django-mptt-admin) support
0.1.2 (march 12 2013)
Issue 1: Grid view doesn’t link correctly to object change pages (thanks to Kris Fields)
0.1.1 (februari 25 2013)
Added experimental Python 3 support
0.1 (februari 7 2013)
Initial version
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 Distribution
Built Distributions
Hashes for django_mptt_admin-0.1.10-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3acb08f6993a73ce96cc36ee5299f7331ebb6f445d09e485b8fb556791aa24d |
|
MD5 | 59643553b09b57399ba5aae517421f3c |
|
BLAKE2b-256 | be361bf1fd995f17c498965427cbe8de0f3f73f66a1f98484424e5414e093438 |
Hashes for django_mptt_admin-0.1.10-py2.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1fbfb6aec6ea1afd5b3bf92d9cf50b52856879e7a88a4ba9d06bf57c298689a |
|
MD5 | 1f15d6bc6b4afbd5c3625c791b053feb |
|
BLAKE2b-256 | db2a8df670c8216efd3199c7247304d738eb78d2de0cf2475b902408fe42a6fb |