> I want to be able to change the definition of an existing class (and
> the associated parts of the DB)  during runtime, from a web interface.

> I'll describe the model I want to implement...
> Say I have three classes: Item, Item Type, (and possibly) Item Field

>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?

> Another requirement is the ability to have "complex fields" that is,
> small collections of fields that go together, like a boolean field
> (represented by a checkbox) used to specify if a partner charfield
> should do one thing or another.

If the complexity exists at the data level, you may find that Django's
'custom model fields' [1] will help you with that.

Otherwise, if the complexity is just presentation/form-based, you can
use custom form fields/widgets. See James Bennett's excellent writeup
on newforms for more on that (and newforms in general) [2].

Matt.

[1] http://www.djangoproject.com/documentation/custom_model_fields/
[2] http://www.b-list.org/weblog/2007/nov/23/newforms/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to