I have a MongoEngine Document class Student..
class Student(Document):
db_id = StringField()
name = StringField()
score = IntField()
deleted = BooleanField(default=False, required=True)
I would like to query as
Student.objects.filter(score__gte=30)
But I'm getting a error like AttributeError: 'int' object has no attribute 'get'
Can someone please help me in how I can do this? Thank you!