def __init__(self, *args, **kwargs): self.autocomplete = kwargs.pop('autocomplete', None) BasePasswordInput.__init__(self, *args, **kwargs)