Questions tagged [reverse-foreign-key]

2 questions
108
votes
4 answers

Django reverse lookup of foreign keys

I have a venue, this venue has many events happening there. My models look like this: class Venue(models.Model): title = models.CharField(max_length=200) date_published = models.DateTimeField('published date',default=datetime.now,…
FLX
  • 4,634
  • 14
  • 47
  • 60
1
vote
2 answers

What are "Forward Foreign Key" and "Reverse Foreign Key" in Django?

When reading the topics related to Django's select_related() and prefetch_related() on some websites including Stack Overflow, I frequently see the words Forward Foreign Key and Reverse Foreign Key but I couldn't find the definitions on Django…