fixed icon issues
This commit is contained in:
parent
4ffc9cc72f
commit
4a1ec5adf7
@ -34,7 +34,7 @@ class FoodPropertyHelper:
|
|||||||
caches['default'].set(CacheHelper(self.space).PROPERTY_TYPE_CACHE_KEY, property_types, 60 * 60) # cache is cleared on property type save signal so long duration is fine
|
caches['default'].set(CacheHelper(self.space).PROPERTY_TYPE_CACHE_KEY, property_types, 60 * 60) # cache is cleared on property type save signal so long duration is fine
|
||||||
|
|
||||||
for fpt in property_types:
|
for fpt in property_types:
|
||||||
computed_properties[fpt.id] = {'id': fpt.id, 'name': fpt.name, 'icon': fpt.icon, 'description': fpt.description, 'unit': fpt.unit, 'order': fpt.order, 'food_values': {}, 'total_value': 0, 'missing_value': False}
|
computed_properties[fpt.id] = {'id': fpt.id, 'name': fpt.name, 'description': fpt.description, 'unit': fpt.unit, 'order': fpt.order, 'food_values': {}, 'total_value': 0, 'missing_value': False}
|
||||||
|
|
||||||
uch = UnitConversionHelper(self.space)
|
uch = UnitConversionHelper(self.space)
|
||||||
|
|
||||||
|
@ -143,7 +143,6 @@ class RecipeBookFactory(factory.django.DjangoModelFactory):
|
|||||||
name = factory.LazyAttribute(lambda x: faker.sentence(
|
name = factory.LazyAttribute(lambda x: faker.sentence(
|
||||||
nb_words=3, variable_nb_words=False))
|
nb_words=3, variable_nb_words=False))
|
||||||
description = factory.LazyAttribute(lambda x: faker.sentence(nb_words=10))
|
description = factory.LazyAttribute(lambda x: faker.sentence(nb_words=10))
|
||||||
icon = None
|
|
||||||
# shared = factory.SubFactory(UserFactory, space=factory.SelfAttribute('..space'))
|
# shared = factory.SubFactory(UserFactory, space=factory.SelfAttribute('..space'))
|
||||||
created_by = factory.SubFactory(
|
created_by = factory.SubFactory(
|
||||||
UserFactory, space=factory.SelfAttribute('..space'))
|
UserFactory, space=factory.SelfAttribute('..space'))
|
||||||
|
Loading…
Reference in New Issue
Block a user