Merge "pylint: fix bad-super-call"
This commit is contained in:
commit
f5e829a375
|
@ -12,7 +12,6 @@ disable=
|
|||
# "E" Error for important programming issues (likely bugs)
|
||||
access-member-before-definition,
|
||||
assignment-from-no-return,
|
||||
bad-super-call,
|
||||
import-error,
|
||||
logging-too-few-args,
|
||||
method-hidden,
|
||||
|
|
|
@ -1032,7 +1032,8 @@ class HorizonSite(Site):
|
|||
|
||||
def __new__(cls, *args, **kwargs):
|
||||
if not cls._instance:
|
||||
cls._instance = super(Site, cls).__new__(cls, *args, **kwargs)
|
||||
cls._instance = super(HorizonSite, cls).__new__(cls,
|
||||
*args, **kwargs)
|
||||
return cls._instance
|
||||
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ class PasswordMixin(forms.SelfHandlingForm):
|
|||
|
||||
def clean(self):
|
||||
'''Check to make sure password fields match.'''
|
||||
data = super(forms.Form, self).clean()
|
||||
data = super(PasswordMixin, self).clean()
|
||||
if 'password' in data and 'confirm_password' in data:
|
||||
if data['password'] != data['confirm_password']:
|
||||
raise ValidationError(_('Passwords do not match.'))
|
||||
|
|
|
@ -67,7 +67,7 @@ class LaunchImageNG(LaunchImage):
|
|||
|
||||
def __init__(self, attrs=None, **kwargs):
|
||||
kwargs['preempt'] = True
|
||||
super(LaunchImage, self).__init__(attrs, **kwargs)
|
||||
super(LaunchImageNG, self).__init__(attrs, **kwargs)
|
||||
|
||||
def get_link_url(self, datum):
|
||||
imageId = self.table.get_object_id(datum)
|
||||
|
|
|
@ -56,7 +56,7 @@ class LaunchSnapshotNG(LaunchSnapshot):
|
|||
|
||||
def __init__(self, attrs=None, **kwargs):
|
||||
kwargs['preempt'] = True
|
||||
super(LaunchSnapshot, self).__init__(attrs, **kwargs)
|
||||
super(LaunchSnapshotNG, self).__init__(attrs, **kwargs)
|
||||
|
||||
def get_link_url(self, datum):
|
||||
url = reverse(self.url)
|
||||
|
|
|
@ -74,7 +74,7 @@ class LaunchVolumeNG(LaunchVolume):
|
|||
|
||||
def __init__(self, attrs=None, **kwargs):
|
||||
kwargs['preempt'] = True
|
||||
super(LaunchVolume, self).__init__(attrs, **kwargs)
|
||||
super(LaunchVolumeNG, self).__init__(attrs, **kwargs)
|
||||
|
||||
def get_link_url(self, datum):
|
||||
url = reverse(self.url)
|
||||
|
|
Loading…
Reference in New Issue