O'Reilly logo

Learning Django Web Development by Ratan Kumar, Sanjeev Jaiswal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Customizing listing pages

As we saw in the previous chapter, we registered our model classes to the administration interface using the following methods:

  • admin.site.register (Tweet)
  • admin.site.register (Hashtag)
  • admin.site.register (UserFollower)

We can also customize several aspects of the administration pages. Let's learn about this by example. The tweet listing page displays the string representation of each tweet, as we can see in the following screenshot:

Customizing listing pages

Wouldn't this page be more useful if it were to display the name of the user who has posted the tweet, as well as the time of posting, in separate columns? It turns out that implementing this functionality ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required