@memoized.memoized_method
def flavors(self, request):
    try:
        return api.trove.flavor_list(request)
    except Exception:
        LOG.exception('Exception while obtaining flavors list')
        redirect = reverse('horizon:project:databases:index')
        exceptions.handle(request, _('Unable to obtain flavors.'), redirect=redirect)
@memoized.memoized_method
def flavors(self, request):
    try:
        return api.trove.flavor_list(request)
    except Exception:
        LOG.exception('Exception while obtaining flavors list')
        redirect = reverse('horizon:project:databases:index')
        exceptions.handle(request, _('Unable to obtain flavors.'), redirect=redirect)