calculate_size is no longer a property
@@ -941,7 +941,7 @@ def add_file_to_resource(resource, f, folder=None, source_name='',
# TODO: generate this from data in ResourceFile rather than extension
if file_format_type not in [mime.value for mime in resource.metadata.formats.all()]:
resource.metadata.create_element('format', value=file_format_type)
- ret.calculate_size
+ ret.calculate_size()
return ret
