E
E
Elvis2017-01-22 01:03:10
Django
Elvis, 2017-01-22 01:03:10

How to add text to django admin?

I need to add a separator, so to speak, through the model class. This is necessary for a general understanding in the admin panel. for example, I have several fields, no matter what, I want to insert some kind of heading between them, just a text field (for example h3) to separate information visually.
How to add such a field through the model? so that it is without an input field and just displays the text.
for example, like this, highlighted in red (edited screen):
07ff8e3fd04b413397c24996b6103ff5.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rostislav Grigoriev, 2017-01-22
@crazyzubr

Documentation: https://docs.djangoproject.com/en/1.10/ref/contrib...
Example: stackoverflow.com/questions/1437991/django-admin-f...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question