Example #1
0
 class Meta:
     model = Profile
     fields = [
         'profile_photo', 'gender', 'bio', 'department', 'interests',
         'phone_number', 'year_of_entrance', 'year_of_graduation'
     ]
     widgets = {
         'interests': tag_widget.TagSelectize(),
     }
Example #2
0
 class Meta:
     model = Profile
     fields = [
         'profile_photo',
         'gender',
         'bio',
         'department',
         'interests',
         'phone_number',
         'staff_status',
     ]
     widgets = {
         'interests': tag_widget.TagSelectize(),
     }
Example #3
0
 class Meta:
     model = Post
     fields = ['title', 'text', 'tags', 'publish']
     widgets = {
         'title':
         forms.TextInput(attrs={
             'class': 'col-md-5 form-control',
             'placeholder': 'Title'
         }),
         'text':
         forms.Textarea(),
         'tags':
         tag_widget.TagSelectize(attrs={
             'class': 'col-md-5',
             'placeholder': 'Tags'
         }),
         'publish':
         forms.CheckboxInput(attrs={'label': 'publish'})
     }
Example #4
0
 class Meta:
     model = User
     fields = ['first_name', 'last_name', 'username', 'email']
     widgets = {
         'interests': tag_widget.TagSelectize(),
     }