class Meta: model = Organization exclude = ["user", "status", "status_changed", "accept_terms_and_conditions", "rejection_message"] widgets = { "email": EmailInput(), "legal_representative_email": EmailInput(), "city": forms.Select(attrs={"data-url": reverse_lazy("city-autocomplete"),}), }
class Meta: model = models.RegisterNGORequest fields = [ "name", "county", "city", "address", "email", "contact_name", "contact_phone", "social_link", "description", "past_actions", "resource_types", "has_netopia_contract", "avatar", "last_balance_sheet", "statute", ] widgets = { "email": EmailInput(), # # "has_netopia_contract": forms.CheckboxInput(), # "avatar": AdminResubmitImageWidget, # "last_balance_sheet": AdminResubmitFileWidget, # "statute": AdminResubmitFileWidget, }
class Meta: model = models.Candidate exclude = ["org", "status", "status_changed"] widgets = { "is_proposed": forms.HiddenInput(), "email": EmailInput(), }
class Meta: model = Organization exclude = [ "user", "status", "status_changed", "report_2019", "report_2018", "report_2017", "fiscal_certificate", "statement", "rejection_message", ] widgets = { "email": EmailInput(), "legal_representative_email": EmailInput(), "city": forms.Select(attrs={"data-url": reverse_lazy("city-autocomplete"),}), }
class Meta: model = models.PaymentOrder test = forms.CheckboxInput() fields = ("amount", "first_name", "last_name", "phone", "email", "address", "show_name") widgets = { "email": EmailInput(), "amount": forms.NumberInput(attrs={"class": "input"}), "show_name": forms.CheckboxInput(), }
class EmailField(DjangoEmailField): widget = EmailInput()
class Meta: model = models.NGOHelper fields = ("name", "email", "message", "phone") widgets = {"email": EmailInput()}
class Meta: model = models.NGOHelper fields = ["name", "email", "message", "phone", "resource_image"] # fields="__all__" widgets = {"email": EmailInput()}
class Meta: model = User fields = ['first_name', 'last_name', 'email'] widgets = { 'email': EmailInput(attrs={'class': 'input'}), }