Fix tests after meta-data merge

This commit is contained in:
Raphael Michel
2017-09-04 22:09:30 +02:00
parent 5ff53d08ed
commit a2a88cfafa
2 changed files with 8 additions and 5 deletions

View File

@@ -51,9 +51,12 @@ class MetaDataEditorMixin:
@cached_property
def meta_forms(self):
val_instances = {
v.property_id: v for v in self.object.meta_values.all()
}
if hasattr(self, 'object') and self.object:
val_instances = {
v.property_id: v for v in self.object.meta_values.all()
}
else:
val_instances = {}
formlist = []