how to properly define a ManyToMany field in the models.py file
问题 In my Django app I have the following models.py: from django.db import models import datetime class Job(models.Model): name = models.CharField(max_length = 250, null = False) user = models.CharField(max_length = 30, null = False) command = models.CharField(max_length = 1000, null = False) whenToRun = models.DateTimeField('Run Date', null = False) output = models.CharField(max_length = 100000, null = True) class Host(models.Model): jobs = models.ManyToManyField(Job, blank = True) name = models