From 546f112a88a827d6b5e030d7f58286ebf4c64904 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 16 Dec 2020 16:38:35 -0800 Subject: [PATCH] pagekite: Drop unused subdomain widget Signed-off-by: Sunil Mohan Adapa Reviewed-by: Veiko Aasa --- plinth/modules/pagekite/forms.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/plinth/modules/pagekite/forms.py b/plinth/modules/pagekite/forms.py index caaae4c12..496b5e668 100644 --- a/plinth/modules/pagekite/forms.py +++ b/plinth/modules/pagekite/forms.py @@ -24,22 +24,6 @@ class TrimmedCharField(forms.CharField): return super(TrimmedCharField, self).clean(value) -class SubdomainWidget(forms.widgets.TextInput): - """Append the domain to the subdomain bootstrap input field""" - def __init__(self, domain, *args, **kwargs): - """Initialize the widget by storing the domain value.""" - super().__init__(*args, **kwargs) - self.domain = domain - - def render(self, *args, **kwargs): - """Return the HTML for the widget.""" - inputfield = super().render(*args, **kwargs) - return """
- {0} - {1} -
""".format(inputfield, self.domain) - - class ConfigurationForm(forms.Form): """Configure PageKite credentials and frontend"""