Files
manila-ui/manila_ui/dashboards/project/share_groups/panel.py
Victoria Martinez de la Cruz 151a023adb Use gettext_lazy/ngettext_lazy instead of ugettext_lazy/ungettext_lazy
In Django 3.0 ugettext_lazy/ungettext_lazy have been deprecated in favor of
gettext_lazy/ngettext_lazy [0]. 

We are now using Django 3.2, so we should update our code
with the gettext_lazy/ngettext_lazy aliases.

[0] https://docs.djangoproject.com/en/3.0/releases/3.0/#id3

Closes-Bug: #1956220
Change-Id: I488c2230b4ea4e7803522c3b99773cffe76f49bd
2022-04-13 11:44:26 +00:00

30 lines
956 B
Python

# Copyright 2017 Mirantis, Inc.
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from django.utils.translation import gettext_lazy as _
import horizon
from openstack_dashboard.dashboards.project import dashboard
class ShareGroups(horizon.Panel):
name = _("Share Groups")
slug = 'share_groups'
permissions = (
'openstack.services.share',
)
dashboard.Project.register(ShareGroups)