| in blog | timonweb.com |
|---|---|
| original entry | How to sort Django admin list column by a value from a related model |
Here's a real-life case.
On this blog, I have two models: Post and PostStats. As you may have already guessed, the first is for posts and the second is for statistics on each post, such as the number of views.
Here is a simplified version of both models: