mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2025-12-24 02:39:20 -05:00
fixed meal plan factory
This commit is contained in:
@@ -246,7 +246,8 @@ class MealPlanFactory(factory.django.DjangoModelFactory):
|
||||
meal_type = factory.SubFactory(
|
||||
MealTypeFactory, space=factory.SelfAttribute('..space'))
|
||||
note = factory.LazyAttribute(lambda x: faker.paragraph())
|
||||
date = factory.LazyAttribute(lambda x: faker.future_date())
|
||||
from_date = factory.LazyAttribute(lambda x: faker.future_date())
|
||||
to_date = factory.LazyAttribute(lambda x: faker.future_date())
|
||||
space = factory.SubFactory(SpaceFactory)
|
||||
|
||||
class Params:
|
||||
|
||||
Reference in New Issue
Block a user