I am confused of defining OneToMany
relation in django which is not in Django. ManyToOne
field can be done using ForeignKey
but i dnt have idea to define for OneToMany.
here is my problem, I want to add Users as a list to a model.
Class Post(models.Model):
postcontent = models.CharField(max_length=2000)
votedusers = ??? # list of users who voted
Simply it should lists the Users who voted a Post. How to achieve this ?? Thanks in advance.