On Thursday 09 March 2017 09:49:03 Ricken Cheng wrote:
> Hi:
> I am a beginner using django, I want to build a flexible data model
> like this:
>
> Item_ID Attribute Value
> 1 Attr1 V1
> 1 Attr2 V2
> 2 Attr1 V3
> 2 Attr2 V4
> 1 Attr3 V5
>
That's nice, but what are you supposed to do with it? If it means nothing to the application, then why make attributes and not just add a text field with "attributes"?
And yes, if you want some kind of structure for rendering, then JSONField is a good choice.
--
Melvyn Sopacua