Closed EliAndrewC closed 10 years ago
Now that I think about it a little more, I'd much prefer to be able to say something like
return g.to_dict(extra=['attendees'])
So maybe I should supplement what I've already done by adding an extra
parameter to to_dict
. I'll probably go ahead and do that if no one objects.
Our implementation of
to_dict
has two behaviors:The problem is that I sometimes want to say, "all of the default values, plus this one other value". There was no way to do that, so I refactored
to_dict
to use a class property. So now I can say, e.g.