﻿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
18848	model/presentation separation	yaoheling@…	nobody	"I'm working through the tutorial and noticed the following snippet:
{{{
class Poll(models.Model):
    # ...
    def was_published_recently(self):
        return self.pub_date >= timezone.now() - datetime.timedelta(days=1)
    was_published_recently.admin_order_field = 'pub_date'
    was_published_recently.boolean = True
    was_published_recently.short_description = 'Published recently?'
}}}
All 3 attributes admin_order_field, boolean, and short_description seem to be related to how was_published_recently is presented in the admin interface. I guess there might be other such attributes in models.Model as well. 

Maybe such attributes should be moved to `admin.ModelAdmin`?


Thanks,

Heling "	Cleanup/optimization	closed	Database layer (models, ORM)	1.4	Normal	wontfix	models.Model, admin.ModelAdmin		Unreviewed	0	0	0	0	0	0
