popular categories

This commit is contained in:
Diego Calvo
2022-01-31 12:34:13 +01:00
parent 66016020a5
commit 6644d46f75
4 changed files with 12 additions and 6 deletions

View File

@@ -19,7 +19,7 @@ class CategoryTagForm(forms.ModelForm):
parent_category = autocomplete.Select2ListCreateChoiceField(required=False, widget=autocomplete.Select2(url='category-tag-autocomplete', attrs={"data-tags": "true"}))
class Meta:
model = CategoryTag
fields = ('name', 'label', 'slug', 'parent_category', 'official')
fields = ('name', 'label', 'slug', 'parent_category', 'official', 'image')
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)