mirror of
https://github.com/DerTyp7/tealcode-django-python.git
synced 2025-10-30 20:57:07 +01:00
added contact form
This commit is contained in:
7
TealCode/contact/forms.py
Normal file
7
TealCode/contact/forms.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from django.forms import ModelForm,HiddenInput
|
||||
from .models import Entry
|
||||
|
||||
class EntryForm(ModelForm):
|
||||
class Meta:
|
||||
model = Entry
|
||||
fields = [ 'email', 'subject', 'message']
|
||||
Reference in New Issue
Block a user