Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/apache-flex/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 按ListField(ReferenceField)和parants id查询_Python_Mongoengine - Fatal编程技术网

Python 按ListField(ReferenceField)和parants id查询

Python 按ListField(ReferenceField)和parants id查询,python,mongoengine,Python,Mongoengine,我有以下型号: class Group(BaseDocument): movies = ListField(ReferenceField('Movie'), required=False) season = IntField() class Movie(MovieBase): season = IntField() episode = IntField() 我不想看第五季的电影,而电影家长id(组)是家长id,我该怎么办

我有以下型号:

class Group(BaseDocument):
    movies = ListField(ReferenceField('Movie'), required=False)
    season = IntField()

class Movie(MovieBase):
    season  = IntField() 
    episode = IntField() 
我不想看第五季的电影,而电影家长id(组)是家长id,我该怎么办