Hello everybody, I have a class Scene. I would like to add to that model a list of choices (from 0 to n choices). Each choice would consist in an integer representing the Id of one of the existing scene instances. Several choices can lead to the same scene instance. I am not sure at all on how to implement that. Any help, or advice will be greatly appreciated.
Here is Scene model: class Scene(models.Model): title = models.CharField(max_length=30) description = models.TextField() aventure = models.ForeignKey(Aventure, on_delete=models.CASCADE) author = models.ForeignKey(User, on_delete=models.CASCADE) choices = *T0 BE DONE* def __str__(self): return self.title -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/37166c76-f2ec-4d3a-a0ab-f1ee437f903fn%40googlegroups.com.