Given a model with the following DB rows:
| Kind   | Age(days) |  Color |
-------------------------------
| Apple  |    1      | Red    |
| Apple  |    2      | Red    |
| Apple  |    3      | Red    |
| Apple  |    1      | Green  |
| Apple  |    2      | Green  |
| Plum   |    1      | Purple |
| Plum   |    2      | Purple |
| Cherry |    1      | Red    |
| Cherry |    2      | Red    |
I'd like to select the one oldest fruit of each color, so I should end up with:
| Kind   | Age(days) |  Color |
-------------------------------
| Apple  |    3      | Red    |
| Apple  |    2      | Green  |
| Plum   |    2      | Purple |
I know that in SQL it would look something like:
SELECT * FROM `fruit` GROUP BY `color` ORDER BY `age` DESC;
How is this done using the Django QuerySet API? Most of what I see regarding aggregate involves counting things, but I want the actual objects back, not a count of them.
 
    