class Meta: form_name = "Contact Information" model = Contact exclude = [ 'user', 'partner', 'locations', 'library', 'archived_on', 'approval_status', 'last_action_time' ] widgets = generate_custom_widgets(model) widgets['notes'] = forms.Textarea( attrs={ 'rows': 5, 'cols': 24, 'placeholder': 'Notes About This Contact' })
class Meta: form_name = "Tag" model = Tag fields = ['name', 'hex_color'] widgets = generate_custom_widgets(model)
class Meta: form_name = "Location" model = Location exclude = ('country_code', ) widgets = generate_custom_widgets(model)
class Meta: form_name = "Partner Information" model = Partner fields = ['name', 'data_source', 'uri', 'tags'] widgets = generate_custom_widgets(model)