Hi, On Dec 2, 1:21 pm, Vivek Khurana <[EMAIL PROTECTED]> wrote: > Hi! all, > > I want tot know if there is away to extend an existing model for an > application ?What i want to do is following > > I have built a django app. Now I want the developers to be able to > add fields to model without modifying the original model class. > Suppose I have a model called box with fields width and height. Now > if a developer wants to add a field called colour without modifying > the box model. > > The reason for this kind of approach is that I should be able to > upgrade the core without affecting the extensions created by > developers. >
To my regret, Django model inheretance, is not yet working. More info here: http://code.djangoproject.com/wiki/ModelInheritance We have also found this. Building quick sites is very easy with Django. Building 'framework' to build something is difficult. For example here, we are making a e-commerce software framework based on Django. Every e-commerce store have its own set of attributes associated with product. To make it possible, we have created basic models (Product,Category) and related customProduct, customCategory to them. This allows end users and developers to extend models, without inheritance, and without touching basic tables. All this is working via OneToOne relationship, which is not yet fully supported in Django, so we maintain 5 patches to Django source code only to make our software working. Alex --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

