Exemplo n.º 1
0
 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'
         })
Exemplo n.º 2
0
 class Meta:
     form_name = "Tag"
     model = Tag
     fields = ['name', 'hex_color']
     widgets = generate_custom_widgets(model)
Exemplo n.º 3
0
 class Meta:
     form_name = "Location"
     model = Location
     exclude = ('country_code', )
     widgets = generate_custom_widgets(model)
Exemplo n.º 4
0
 class Meta:
     form_name = "Partner Information"
     model = Partner
     fields = ['name', 'data_source', 'uri', 'tags']
     widgets = generate_custom_widgets(model)