def get_default_properties_price(self):
        """
        Returns the total price of all default properties.
        """
        price = 0
        for property_dict in self.get_configurable_properties():
            prop = property_dict['property']
            property_group = property_dict['property_group']
            if prop.add_price:
                # Try to get the default value of the property
                try:
                    ppv = ProductPropertyValue.objects.get(product=self, property_group=property_group,
                                                           property=prop, type=PROPERTY_VALUE_TYPE_DEFAULT)
                    po = PropertyOption.objects.get(pk=ppv.value)
                except (ObjectDoesNotExist, ValueError):
                    # If there is no explicit default value try to get the first
                    # option.
                    if prop.required:
                        try:
                            po = prop.options.all()[0]
                        except __HOLE__:
                            continue
                        else:
                            try:
                                price += po.price
                            except TypeError:
                                pass
                else:
                    try:
                        price += po.price
                    except TypeError:
                        pass

        return price
dataset/ETHPy150Open diefenbach/django-lfs/lfs/catalog/models.py/Product.get_default_properties_price