Answer the question
In order to leave comments, you need to log in
How to implement such a connection?
There are models
class Games(models.Model):
title = models.CharField()
genres = models.ManyToManyField(Genres)
class Genres(models.Model):
title = models.CharField()
Answer the question
In order to leave comments, you need to log in
https://docs.djangoproject.com/es/1.9/topics/db/mo...
ManyToManyField - automatically creates an intermediate table, it is described above how to explicitly describe this table with the addition of the fields you need.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question