Hi!
I am new in django, i want to get the table from one table also want the
some content from another table.
Can anybody tell me how it should be done?
My module class structure is as below
class A(models.Model):
name =models.CharField(max_length=100)
content = models.CharField(max_length=100)
B = models.ForeignKey(B)
class B(models.Model):
details =models.CharField(max_length=100)
i want to display the details from table A as name, content also wants to
display details from table B.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/wqLW58kbqfEJ.
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.