Metadata-Version: 2.1
Name: django-modeladmin-reorder-reborn
Version: 0.1.2
Summary: Custom ordering for the apps and models in the admin app.
Home-page: https://github.com/StalkerRaftik/django-modeladmin-reorder-reborn
Author: Ivan Smirnov
Author-email: IvanSmirnovOP@ya.ru
License: BSD-3-Clause
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 4.1
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Requires-Python: >=3.5
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: AUTHORS.md
Requires-Dist: Django (>=4.1)

# django-modeladmin-reorder-reborn

Reviving the old Django `django-modeladmin-reorder` package.

Detaches model groups from the apps, granting the flexibility to organize models
into various groups, change models and groups order. 
Custom names can be assigned to groups.

## Implemented origin features

* Reorder apps in admin index - this will allow you to position most used apps in top of the page, instead of listing apps alphabetically. e.g. sites app before the auth app
* Rename app labels easily for third party apps without having to modify the source code. e.g. rename auth app to Authorisation for the django admin app.
* Split large apps into smaller groups of models.
* Reorder models within an group. e.g. auth.User model before the auth.Group model.
* Exclude any of the models from the app list. e.g. Exclude auth.Group from the app list. Please note this only excludes the model from the app list and it doesn't protect it from access via url.

## Not implemented features

* Cross link models from multiple apps. e.g. Add sites.Site model to the auth app.
* Rename individual models in the app list. e.g. rename auth.User from User to Staff

## New features

* Gathering models of the app that haven't been included in other groups.

## Requirements

1. Python >= 3.5
2. Django >= 4.1

## Install

Install django-modeladmin-reorder-reborn:

`pip install django-modeladmin-reorder-reborn`

## Configuration

Add the setting ADMIN_REORDER to your settings.py:

```python
ADMIN_REORDER = [
    # Keep original label and models, but change group order
    {'app': 'sites'},

    # Rename app
    {'app': 'auth', 'label': 'Authorisation'},

    # Reorder app models
    {'app': 'auth', 'models': ('User', 'Group')},

    # Exclude models
    {'app': 'auth', 'models': ('User', )},

    # Gather not included in any group models
    {'app': 'auth', 'models': '__rest__'}, 
]
```
