Anticipating the best solutions, I decided this as follows:
class MyModel(models.Model): def _is_something(self): if self.something == 'something': return True return False _is_something.boolean = True is_something = property(_is_something)
Then I refer to the _is_something method in a subclass of ModelAdmin :
class MyModelAdmin(admin.ModelAdmin): list_display = ['_is_something']
And the is_something property is_something different:
if my_model_instance.is_something: print("I'm something")
GaretJax Oct 11 2018-12-12T00: 00Z
source share