Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gmork2/drf-hierarchy

MPTT groups tree to provide permissions hierarchy in django
https://github.com/gmork2/drf-hierarchy

django django-rest-framework mptt python

Last synced: 4 days ago
JSON representation

MPTT groups tree to provide permissions hierarchy in django

Awesome Lists containing this project

README

        

# drf-hierarchy

[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
[![Build Status](https://travis-ci.com/gmork2/drf-hierarchy.svg?branch=master)](https://travis-ci.com/gmork2/drf-hierarchy)

This app implements a modified preorder tree traversal with django groups
in order to provide permissions inheritance.

```shell script
docker-compose up -d
docker-compose exec drf-hierarchy python3 manage.py createsuperuser
x-www-browser 0.0.0.0:8000/admin
x-www-browser 0.0.0.0:8000
```