[Answered ]-How can display a FloatField in a Django admin column rounded to the nearest integer, without using a custom list_display?

2👍

The docs say this:

However, if an element of list_display represents a certain database field, you can indicate this fact by setting the admin_order_field attribute of the item.

So you should define your function to display the rounded value, but set admin_order_field to preserve the ordering capability.

Leave a comment