Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7703147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:23:30+00:00 2026-05-31T23:23:30+00:00

In Django admin, help_text attribute for individual fields is displayed to give instructions. However,

  • 0

In Django admin, help_text attribute for individual fields is displayed to give instructions. However, I would like to include a similar feature for the whole models.

In the code, I’m using docstrings to keep general instructions about models, and it would be very useful if I could display it in the Django admin. The perfect way would be to use the first line of a model’s docstring on the index pages, and the whole contents on the list and form pages.

Are there any modules/snippets solving that, or should I simply write my own? ;.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T23:23:31+00:00Added an answer on May 31, 2026 at 11:23 pm

    Not the “perfect way” you described, but there is django.contrib.admindocs

    For the “perfect way”, you could make a little template filter that returns the docstring of a model, and use that in your overloads or admin/change_form.html and admin/change_list.html.

    Correct me if I’m wrong but docstrings are not the perfect place for contents that should be localized.

    If you have a rather short amount of text per model to localize, like one or two sentences, here’s a few thoughts:

    • A short amount of text can be held in a python variable.
    • A Python variable can be proxied by django.utils.translation.ugettext.
    • A class can hold a python variable.

    So I’d try something like:

    from django.utils.translation import ugettext as _
    
    class Foo(models.Model):
        help_text = _(u'Documentation of Foo model to localize')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

urls.py: from django.contrib import admin admin.autodiscover() ... url(r'^admin/', include(admin.site.urls)), settings.py has active the admin
I am new to Django and would like to know what is the Django-way
The Django admin site makes use of a really cool widget: How can I
Can Django admin site select entries by a custom date range, i.e. using two
The django admin allows you to specify fieldsets . You properly structure a tuple
In Django admin I want to override and implement my own form for a
in the django admin, in any app model, the diplay data (datagrid o view
I use django admin for my users to add their Model objects, as you
In the django admin I inserted a row by specifying 2 columns ( firstName
I could translate Django Admin except a model label because I don't know how

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.