I have been working on a project where I need to create a few classes
in the model that are very similar. What I want to do is subclass a
model but have it not set up a database table. I know there are ways
of doing this I just haven't figured out yet.

Here's an example of what I am trying to do

class Foo(models.Model)
    """ This class does not have a db table """
    name = models.CharField(maxlength=100)

class Bar(Foo)
    """ This class has a db table """
    eyeColor = models.CharField(maxlength=100)

Thanks for you help.


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

Reply via email to