Riko
Riko

Reputation: 131

Django. How to change a block title in admin?

How do you change your models to show a necessary box-title in admin? My admin

Upvotes: 0

Views: 361

Answers (1)

Sachiv Paruchuri
Sachiv Paruchuri

Reputation: 514

It can be changed in the following manner:

In employees/apps.py add:

from django.apps import AppConfig

class EmployeesConfig(AppConfig):
    name = 'employees'
    verbose_name = "The Title"

Then then in employees/__init__.py add the following:

default_app_config = 'employees.apps.EmployeesConfig'

Upvotes: 1

Related Questions