On 08/23/2016 02:53 PM, Brian Bouterse wrote:
> One related comment on this is my desire to avoid getters and setters.
> 
> For example let's say my_field is the JSON field. I hope we can do this:
> 
> my_model = TheModelClass()
> my_model.my_field = {'a': 1, 'b': 2}  # this is setting with a dict
> my_mode.save()  # the field contents are now JSON serialized in the DB
> 
> Also this:
> 
> my_model = TheModelClass.get(pk='12345')
> type(my_model.my_field)  # This would show dictionary not string
> 
> Is that possible with this implementation idea? What do others think about 
> this?

Agreed, this behavior is important.

> 
> Thanks for doing this @pcreech!

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Pulp-dev mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/pulp-dev

Reply via email to