@@ -12,6 +12,7 @@ django-modeladmin-reorder
12
12
:target: https://coveralls.io/r/mishbahr/django-modeladmin-reorder?branch=master
13
13
14
14
Custom ordering for the apps and models in the admin app.
15
+
15
16
You can rename, reorder, cross link, exclude apps or models
16
17
17
18
Documentation
@@ -62,18 +63,38 @@ Configuration
62
63
# Reorder app models
63
64
{'app': 'auth', 'models': ('auth.User', 'auth.Group')},
64
65
66
+ # Exclude models
67
+ {'app': 'auth', 'models': ('auth.User', )},
68
+
65
69
# Cross-linked models
66
70
{'app': 'auth', 'models': ('auth.User', 'sites.Site')},
67
71
68
72
# models with custom name
69
73
{'app': 'auth', 'models': (
70
- 'auth.User ',
71
- {'model': 'auth.Group ', 'label': 'User Group '},
74
+ 'auth.Group ',
75
+ {'model': 'auth.User ', 'label': 'Staff '},
72
76
)},
73
77
)
74
78
75
79
76
80
Features
77
81
--------
78
82
79
- * TODO
83
+ * Reorder apps in admin index — this will allow you to position
84
+ most used apps in top of the page, instead of listing apps
85
+ alphabetically. e.g. `sites ` app before the `auth ` app
86
+
87
+ * Rename a `app ` label easily for third party apps without having
88
+ to modify the source code. e.g. rename `auth ` app to `Authorisation `
89
+
90
+ * Reorder models within a `app `. e.g. `auth.User ` model before the `auth.Group `
91
+
92
+ * Exclude any of the models from the app list by not including it
93
+ in the `models ` config. e.g. Exclude `auth.Group ` from app list.
94
+
95
+ Please note this only excludes the model from the app list and it doesn't protect it from access via url
96
+
97
+ * Cross link models from multiple apps to make your own app module. e.g. Group 'sites.Site' with the 'auth' app
98
+
99
+ * Rename individual models in app list. e.g. rename `auth.User ` name from 'User' to 'Staff'
100
+
0 commit comments