I have a model, Foo. It has several database properties, and several properties that are calculated based on a combination of factors. I would like to present these
Foo
You can use the @property decorator in your model (Python >= 2.4):
class Product(models.Model): @property def ranking(self): return 1
"ranking" can then be used in list_display:
list_display
class ProductAdmin(admin.ModelAdmin): list_display = ('ranking', 'asin', 'title')