> From your description, I don't understand why your models need to be > dynamic. If each Item is defined in terms of it's Type and Fields, > then can you not change the definition on an Item by simply adding new > ItemTypes and ItemFields? If you're talking about using ItemField Classes, I could, but then there would no real instances of items other than as a collection of foreign keys, and instead my items are stored in instances of different item field classes. and I get tables that consist of instances of the various types of fields available (i.e. a table full of charfields, which is holding all the data for all the charfields of my items).
As for them needing to be dynamic, it's that I want end-users (who wouldn't have access to models,py and the know-how to change it) to be able to add fields to items, like "model" or "manufacturer", etc. to fit their needs. At my current job I use a CRM system that has all these unnecessary fields for all kinds of records. It would be wonderful if the end- users (say, accounting, or warehouse manager, or whatever) could put in the fields as required (which we can do, but we can't get rid of the default ones), so that anyone entering in a new instance of an item could later fill out the fields. As for Marty's response... >However, I haven't looked at what it > would take to actually commit changes to the already-synced tables. I > have a feeling Django Evolution[2] will help with this, but I haven't > done any testing with it yet. Yeah, I've seen the DynamicModels writeup, but there is that issue of syncing modifications to models. Evolution might help, but as far as I can tell that will look at the models.py file, not database entries, so that brings me back to my original question of whether I should build some kind of script/app to edit models.py files. Matt, the custom_model_fields link will probably come in handy. Thanks! -D. Py --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---