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):
6060
6161 language = mongo .StringField (max_length = ISO_639_MAX_LENGTH , regex = ISO_639_REGEXP )
6262
63- meta = {"abstract" : True }
63+ meta = {"abstract" : True , "strict" : False }
6464
6565 def __repr__ (self ):
6666 return "<BaseRecipe '{}'>" .format (self .name )
6767
6868
6969class Recipe (BaseRecipe , BaseDocument ):
70- meta = {"collection" : "recipes" }
70+ meta = {"collection" : "recipes" , "strict" : False }
7171
7272 def __repr__ (self ):
7373 return "<Recipe '{}'>" .format (self .name )
@@ -102,7 +102,7 @@ class ScrapedRecipes(mongo.Document):
102102class ExternalRecipe (BaseRecipe ):
103103 scrape_id = mongo .ObjectIdField ()
104104
105- meta = {"collection" : "external_recipes" }
105+ meta = {"collection" : "external_recipes" , "strict" : False }
106106
107107 def __repr__ (self ):
108108 return "<ExternalRecipe '{}'>" .format (self .name )
You can’t perform that action at this time.
0 commit comments