﻿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
12862	Feature Request: Allow model @property methods to be serialized.	Oroku Saki	nobody	"Let's say I have this class:


{{{
class Cart(models.Model):
    account = models.ForeignKey(Account)
    
    @property
    def total(self):
        total = 0
        for item in self.item_set:
            total += item.price
        return total
}}}

Obviously if I were to serialize this model, I would want the total to be serialized. I wouldn't mind having to include it in fields=() argument of serialize().
"		closed	Uncategorized	1.1		duplicate			Unreviewed	0	0	0	0	0	0
