Elance Exams Answers PDF file

-- PDF FILE --
Download PDF file of elance Zoho Creator Exam Answers
elance-zoho-creator-exam.pdf

How would you create a ForeignKey from a model named Transaction, to a model named Product, with no reverse relation?

class Transaction(models.Model): product = models.ForeignKey(Product, related_name=None)
class Transaction(models.Model): product = models.ForeignKey(Product, related_name='+')
class Transaction(models.Model): product = models.ForeignKey(Product, related_name=False)
class Transaction(models.Model): product = models.ForeignKey(Product, related_name='')
Top
  • Follows us our servcies
  • Facebook icon
  • Linkedin icon
  • twitter icon
  • rss icon
  • social icon