Source code for superdjango.contrib.accounts.impersonation.forms

# Imports

from django import forms
from django.utils.translation import gettext_lazy as _

# Exports

__all__ = (
    "UserImpersonationSearchForm",
)

# Forms


[docs]class UserImpersonationSearchForm(forms.Form): """Collect input for searching users to be listed for impersonation..""" term = forms.CharField( label=_("Search For"), help_text=_("The name, user name, or email address of the user you wish to impersonate."), required=True )