Official field in CategoryTag and categories in initial endpoint

This commit is contained in:
Diego Calvo
2022-01-31 11:50:43 +01:00
parent 71d5834abe
commit 66016020a5
4 changed files with 28 additions and 4 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')
fields = ('name', 'label', 'slug', 'parent_category', 'official')
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)