mirror of
https://github.com/boostorg/website-v2.git
synced 2026-01-19 04:42:17 +00:00
18 lines
400 B
Python
18 lines
400 B
Python
from django import forms
|
|
|
|
from .models import CapturedEmail
|
|
|
|
|
|
class CapturedEmailForm(forms.ModelForm):
|
|
class Meta:
|
|
model = CapturedEmail
|
|
fields = ["email"]
|
|
widgets = {
|
|
"email": forms.EmailInput(
|
|
attrs={
|
|
"placeholder": "your@email.com",
|
|
"autocomplete": "email",
|
|
}
|
|
)
|
|
}
|