-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new branch created change added to make a contactus py form #32
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
rom django import forms | ||
|
||
class NameForm(forms.form): | ||
your_email = forms.CharField(label = 'Your Email', max_length = 100) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. One small change to your labels. We want these to be able to be translated into other languages easily, and Django facilitates that through their translation module. In the So for your labels, could you wrap them in When you move this form class to the |
||
your_name = forms.CharField(label = 'Your Name', max_length = 100) | ||
your_comments = forms.CharField(label = 'Your Comments', max_length = 100) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You'll want to add |
||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will need to be
from django...
. Small typo. But I think it'd be better to move your form class to another place in the codebase. See the comment I left on the main PR for more info.