Well, I am working on a Django application with several different models, namely accounts, contacts, etc., each with a different set of fields. I need each of my users to be able to define their own fields in addition to the existing fields. I saw several different ways to implement this: from a large number of CustomFields and simply matching a custom name for each field used by each user. I also provide recommendations for implementing complex mapping or storing / searching the XML / JSON style of user-defined fields.
So my question is, has anyone implemented custom fields in a Django application? If so, how did you do it and what was your experience with the overall implementation (stability, performance, etc.)?
Update. My goal is to allow each of my users to create n numbers of each type of record (accounts, contacts, etc.) and associate user-defined data with each record. For example, one of my users can associate an SSN with each of his contacts, so I will need to save this extra field for each Contact record that he creates.
Thank!
Mark
source
share