class tb1( models.Model ):
name = models.CharField(max_length=32)
tb2 = models.ForeignKey(Category)
class tb2( models.Model ):
name = models.CharField(max_length=64)
Do I have to use Manager when do cross-table querying such
SELECT
tb1.name,
tb2.name as tb2_name
FROM
tb1 INNER JOIN tb2
WHERE
tb1.tb2_id = tb2.id
?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---