Complete replacement of Thing types with tag system
This commit is contained in:
@@ -8,11 +8,11 @@ class ThingForm(forms.ModelForm):
|
||||
|
||||
class Meta:
|
||||
model = Thing
|
||||
fields = ('name', 'thing_type', 'description', 'picture')
|
||||
fields = ('name', 'description', 'picture', 'tags')
|
||||
widgets = {
|
||||
'name': forms.TextInput(attrs={'class': 'form-control'}),
|
||||
'thing_type': forms.Select(attrs={'class': 'form-control'}),
|
||||
'description': forms.Textarea(attrs={'class': 'form-control', 'rows': 4}),
|
||||
'tags': forms.CheckboxSelectMultiple(attrs={'class': 'tags-checkboxes'}),
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user