Open GeorgeLubaretsi opened 5 years ago
Interesting idea. But automatically putting all properties into the JSON format will probably have some unintended consequences. It might be better if there was something like this:
@related.property
def full_name(self):
return '{0} {1}'.format(self.first_name, self.last_name)
thoughts?
Example:
I think property attributes should be included in a serialized output. Perhaps iterating over the attributes and getting all the values of property instances should be the easiest approach?