We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65035cc commit 3eef83bCopy full SHA for 3eef83b
client_admin/items.py
@@ -12,6 +12,7 @@
12
# See the License for the specific language governing permissions and
13
# limitations under the License.
14
15
+from django.apps import apps as app_registry
16
from django.contrib import admin
17
from django.utils.safestring import mark_safe
18
from django.utils.text import capfirst
@@ -203,8 +204,9 @@ def init_with_context(self, context):
203
204
continue
205
app_label = getattr(admin.site._registry[model], 'app_label', None) or model._meta.app_label
206
if app_label not in apps:
207
+ app_title = app_registry.get_app_config(app_label).verbose_name
208
apps[app_label] = {
- 'title': capfirst(app_label.title()),
209
+ 'title': app_title,
210
'url': get_admin_app_list_url(model),
211
'models': []
212
}
0 commit comments