Hi All,

There are n Classes in myapp/models.py

class Product_1(models.Model):
    part_number = models.CharField(maxlength=20, unique=True)
    ...

class Product_2(models.Model):
    part_number = models.CharField(maxlength=20, unique=True)
    ...

...

class Product_n(models.Model):
    part_number = models.CharField(maxlength=20, unique=True)
    ...


and I want to get the Product for a specific part_number by querying
over all tables(Product_1, Product_2, ..., Product_n).

So, what's the "Django Way" to do this?

Thanks a lot for any help or suggestion.
Regards


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