We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8967686 commit 877335fCopy full SHA for 877335f
source/includes/interact-data/specify-a-query.py
@@ -1,8 +1,9 @@
1
# start-models
2
from django.db import models
3
+from django_mongodb_backend.models import EmbeddedModel
4
from django_mongodb_backend.fields import EmbeddedModelField, ArrayField
5
-class Award(models.Model):
6
+class Award(EmbeddedModel):
7
wins = models.IntegerField(default=0)
8
nominations = models.IntegerField(default=0)
9
text = models.CharField(max_length=100)
0 commit comments