File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -60,14 +60,14 @@ class BaseRecipe(mongo.Document):
60
60
61
61
language = mongo .StringField (max_length = ISO_639_MAX_LENGTH , regex = ISO_639_REGEXP )
62
62
63
- meta = {"abstract" : True }
63
+ meta = {"abstract" : True , "strict" : False }
64
64
65
65
def __repr__ (self ):
66
66
return "<BaseRecipe '{}'>" .format (self .name )
67
67
68
68
69
69
class Recipe (BaseRecipe , BaseDocument ):
70
- meta = {"collection" : "recipes" }
70
+ meta = {"collection" : "recipes" , "strict" : False }
71
71
72
72
def __repr__ (self ):
73
73
return "<Recipe '{}'>" .format (self .name )
@@ -102,7 +102,7 @@ class ScrapedRecipes(mongo.Document):
102
102
class ExternalRecipe (BaseRecipe ):
103
103
scrape_id = mongo .ObjectIdField ()
104
104
105
- meta = {"collection" : "external_recipes" }
105
+ meta = {"collection" : "external_recipes" , "strict" : False }
106
106
107
107
def __repr__ (self ):
108
108
return "<ExternalRecipe '{}'>" .format (self .name )
You can’t perform that action at this time.
0 commit comments