Suppose there are two tables defined in Django models:
class Link(models.Model):
links = models.CharField(max_length=50 ,blank=True)
and
class Content(models.Model):
link = models.OneToOneField(Link, primary_key=True)
title = models.CharField(max_length=50, blank=True)
content = models.CharField(max_length=1000, blank=True)
footer = models.CharField(max_length=150, blank=True)
In the above table "Content" the OneToOne field contains the Link.id
attribute of the
table"Link", but how could i get it as, Link.links.
--
Satinderpal Singh
http://satindergoraya91.blogspot.in/