35862-vm/core/forms.py
Flatlogic Bot e39a95b4fc v1
2025-11-20 05:21:31 +00:00

11 lines
412 B
Python

from django import forms
from .models import WhitelistEntry
class WhitelistForm(forms.ModelForm):
class Meta:
model = WhitelistEntry
fields = ['gmail', 'eth_address']
widgets = {
'gmail': forms.EmailInput(attrs={'placeholder': 'Enter your Gmail address'}),
'eth_address': forms.TextInput(attrs={'placeholder': 'Enter your Ethereum wallet address'}),
}