Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (16 sloc) 0.845 kB
from django import forms
from feedback.models import FeedBack
class FeedbackForm(forms.ModelForm):
def __init__( self, *args, **kwargs ):
super( forms.ModelForm, self ).__init__( *args, **kwargs )
self.fields['feedback_contact_number'].widget.attrs['class'] = 'textbox'
self.fields['feedback_contact_number'].label = 'Contact No'
self.fields['feedback_name'].widget.attrs['class'] = 'textbox'
self.fields['feedback_name'].label = 'Name'
self.fields['feedback_email'].widget.attrs['class'] = 'textbox'
self.fields['feedback_email'].label = 'Email'
self.fields['feedback_type'].widget.attrs['class'] = 'dropdown'
self.fields['feedback_type'].label = 'Type'
self.fields['feedback'].widget.attrs['class'] = 'textbox'
class Meta:
model = FeedBack
Jump to Line
Something went wrong with that request. Please try again.