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 7552269
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:43:04+00:00 2026-05-30T10:43:04+00:00

I have two models e.g. Book and Author . An author can have many

  • 0

I have two models e.g. Book and Author. An author can have many books and therefore I have a foreign-key from the Book to the Author table.

I display the the Book and the Author record in my Django application using the TabularInline class. This works fine but I get the a Book object on the top-left corner of every book row displayed in the author’s inline admin. How can I remove this? I’m trying to avoid editing the Django admin templates if possible and some have suggested that I should override the __unicode__ method on the Book model but I would like to hide it entirely.

Is this possible?

My Book model also references another model called Publisher. The publisher’s __unicode__ value is displayed in one of the columns of book records in the TabularInline but I’d like to be able to link this to the admin page for that Publisher record instead of just displaying simple text.

What should I specify to do this?

  • 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-30T10:43:06+00:00Added an answer on May 30, 2026 at 10:43 am

    Why not just override the admin template to add some CSS ?

    For example, in templates/admin/testapp/author/change_form.html:

    {% extends 'admin/change_form.html' %}
    
    {% block content %}
        <style type="text/css">
        fieldset.module td.original p { display:none; }
        </style>
        {{ block.super }}
    {% endblock %}
    

    You may do that globally, per app or per model.

    It works and seems pretty safe, unlike overriding the fieldset template itself – which makes sense to avoid doing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two tables, Author and Book, where an author can have many books.
I have two models: Books and Chapters, where book has many chapters. I've set
I have two simple models: Book, and Author Each Book has one Author, linked
I have two models books and authors joined by books_authors model. A book has
Hypothetical scenario: I have two models: Author and Book . The Book model has
I was wondering the following, if I have these two Models: Author Book And
Say I have two models, Book and Author with a has_and_belongs_to_many relationship between them.
Short question. I have two models: class Author(models.Model): name = models.CharField(max_length=250) class Book(models.Model): title
I have two models. Writers and Books. A writer has many books. After i
I have two models, Article and Post that both inherit from a base model

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.