Given the models:
class Post(models.Model):
datas = ListField(EmbeddedModelField('Comment'),blank=True)
data = DictField()
class Comment(models.Model):
name = models.CharField(max_length=255)
date = DateField(blank=True, null=True)
If we set the data variable to:
{'key':'value'}
Is there a way to filter for Posts with key=='value'?
As an alternative, what about with embedded documents? Is there a way to filter for a Post that has an author with the name 'Ralph'?
It seems like this must be possible, or else this ORM is far too limiting to be useful, which seems unlikely.