Complete replacement of Thing types with tag system

This commit is contained in:
2026-01-03 22:23:35 +01:00
parent cb3e9d6aec
commit cd04a21157
15 changed files with 530 additions and 195 deletions

View File

@@ -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'}),
}