You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am new to mongodb engine please help us
My models are like
class Address(models.Model):
town=models.CharField(db_column='town',max_length=100L)
pincode=models.IntegerField(db_column='pincode')
class Person(models.Model):
name=models.CharField(db_column='name',max_length=100L)
address=ListField(EmbeddedModelField(Address))
objects=MongoDBManager()
I want query like
Person.objects.values_list('address__town').filter(name='xyd')
The text was updated successfully, but these errors were encountered:
I am new to mongodb engine please help us
My models are like
class Address(models.Model):
town=models.CharField(db_column='town',max_length=100L)
pincode=models.IntegerField(db_column='pincode')
class Person(models.Model):
name=models.CharField(db_column='name',max_length=100L)
address=ListField(EmbeddedModelField(Address))
objects=MongoDBManager()
I want query like
Person.objects.values_list('address__town').filter(name='xyd')
The text was updated successfully, but these errors were encountered: