|Version 3 (modified by 9 years ago) (diff),|
Part of DjangoSpecifications
Usability improvements for application handling
Suppose I have a project that contains 10 applications, each containing several models. Some of the apps are of primay importance, some are less important. Currently, there is no way to impose either ordering or hide app contents. This confuses users as it's hard to discern important bits from non-important ones.
Ticket #3591 proposes an
app configuration directive, this proposal builds upon that.
The following should be possible to achieve with the
- verbose application names: specified and implemented in #3591
app('mypkg.auth', 'myauth', 'My cool auth app', weight=1). Heavier items sink to the bottom and lighter ones raise to the top. Default is 0, negative weights can be used for pushing apps above those that don't specify weight.
app('mypkg.auth', 'myauth', 'My cool auth app', style=('collapse',)). The style argument has similar behaviour to fieldsets styling in ModelAdmin.
app('mypkg.auth', 'myauth', 'My cool auth app', description='The cool auth app helps you to foo and bar.',)). Similar to
help_textin model fields.
- models could have descriptions as well