﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
31558	Support the use of boolean attribute on properties in the admin.	Alexandre Poitevin	Anvansh Singh	"Example (adapted from the polls tutorial):
{{{
class Question(models.Model):

    DEFINITION_OF_RECENT = {""days"": 1}

    text = models.CharField(max_length=255)
    publication_date = models.DateTimeField('Date of publication')

    def was_published_recently(self):
        timenow = timezone.now()
        recent = timenow - timedelta(**self.DEFINITION_OF_RECENT)
        return recent <= self.publication_date <= timenow

    was_published_recently.admin_order_field = 'publication_date'
    was_published_recently.short_description = 'Published Recently?'
    was_published_recently.boolean = True
    was_published_recently = property(was_published_recently)
}}}

There is no problem with `short_description` nor `admin_order_filed`, but `boolean` does not act as expected.

(I hesitated between Bug and New feature for this ticket…)"	New feature	closed	contrib.admin	dev	Normal	fixed		Hasan Ramezani	Ready for checkin	1	0	0	0	0	0
