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 6c8d010 commit e149273Copy full SHA for e149273
source/includes/model-data/indexes.py
@@ -1,9 +1,10 @@
1
# start-models
2
from django.db import models
3
from django.db.models import Q, F
4
+from django_mongodb_backend.models import EmbeddedModel
5
from django_mongodb_backend.fields import EmbeddedModelField, ArrayField
6
-class Nutrition(models.Model):
7
+class Nutrition(EmbeddedModel):
8
calories = models.IntegerField(default=0)
9
carb_grams = models.IntegerField(default=0)
10
protein_grams = models.IntegerField(default=0)
0 commit comments