Hello, I am defining a Product class that gets inherited by various products, so I am defining in it all the base attributes that exist on all child products.
I want to know if its possible to forbid changing the actual "products" table unless you add one of the actual child products. Also, what's the best method to design the model to be more extendable? 'Cause I might have to add a new kind of product in the feature, and right now I'm defining all models in the products app. Maybe I shouldn't add the Product class in the Model schema, and just have each of the products inherit it? code snippet: from django.core import meta class Product(meta.Model): name = meta.CharField(maxlength=25) company = meta.ForeignKey(Company) value = meta.FloatField(max_digits=9, decimal_places=3) price = meta.FloatField(max_digits=9, decimal_places=3) class Tile(Product): #size = selection = meta.CharField(maxlength=25) image = meta.ImageField() quantity = meta.IntegerField() --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---