django.utils.translation.ugettext(), ugettext_lazy(), ugettext_noop(),
ungettext(), and ungettext_lazy() are deprecated in favor of the
functions that they’re aliases for: django.utils.translation.gettext(),
gettext_lazy(), gettext_noop(), ngettext(), and ngettext_lazy().
https://docs.djangoproject.com/en/4.0/releases/3.0/#id3
Change-Id: I77878f84e9d10cf6a136dada81eabf4e18676250
In python3, super() does not always require a class and self reference.
In other words, super() is enough for most cases.
This is much simpler and it is time to switch it to the newer style.
pylint provides a check for this.
Let's enable 'super-with-arguments' check.
NOTE: _prepare_mappings() method of FormRegion in
openstack_dashboard/test/integration_tests/regions/forms.py is refactored.
super() (without explicit class and self referece) does not work when
a subclass method calls a same method in a parent class multiple times.
It looks better to prepare a separate method to provide a common logic.
Change-Id: Id9512a14be9f20dbd5ebd63d446570c7b7c825ff
When there is more than one Extra Specs in Volume Type Extra Specs,
then create an Extra spec with an invalid key name like "#^&*",
the form prompts a wrong error message.
This patch corrects the error message.
Change-Id: I5ecdbb37953e95b302a254748cfc2a6a615c7d4b
Closes-Bug: #1822924
This patch add a validation message when a user try to 'Create'
a extra spec with an existing key name under Volume Type panel.
Change-Id: I6a1eac269e616ba0861a41eda5eac1b1a4cdd1d0
Closes-Bug: #1818826
The "-" in the regex group has to be the first or the last character,
otherwise it counts as a range.
This is a follow-up patch of https://review.openstack.org/#/c/632204/
Change-Id: I08f80410540cb73f74837fe3ac83bd16f1ae7978
server has checked the input parameters,
Key names can only contain alphanumeric characters,
underscores, periods, colons and hyphens
Change-Id: Ie49b5cfbb10c7c2234c88f89ad7d491d026eef9e
(In Django 2.0) The django.core.urlresolvers module is removed
in favor of its new location, django.urls.
It was depreacted in Django 1.10:
https://docs.djangoproject.com/en/2.0/releases/1.10/#id3
blueprint django2-support
Change-Id: I46ab5c325491274b8eaffbf848e5d80f83c2fd26