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 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1932007.dZiS7n2x8r%40devstation. For more options, visit https://groups.google.com/d/optout.