From 3de626d5c5bbcda16fd645359e618711fd258d50 Mon Sep 17 00:00:00 2001 From: radex Date: Thu, 21 May 2020 00:35:02 +0200 Subject: [PATCH] labels via api + remove redundant nav item --- storage/serializers.py | 2 +- templates/base.html | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/storage/serializers.py b/storage/serializers.py index d90e960..d760e05 100644 --- a/storage/serializers.py +++ b/storage/serializers.py @@ -10,7 +10,7 @@ class ItemSerializer(HStoreSerializer): taken_by = serializers.SlugRelatedField(queryset=User.objects, slug_field='username') class Meta: model = Item - fields = ('uuid', 'short_id', 'name', 'description', 'props', 'state', 'parent', 'owner', 'taken_by', 'taken_on', 'taken_until', 'categories') + fields = ('uuid', 'short_id', 'name', 'description', 'props', 'state', 'parent', 'labels', 'owner', 'taken_by', 'taken_on', 'taken_until', 'categories') class LabelSerializer(serializers.ModelSerializer): item = ItemSerializer(required=False) diff --git a/templates/base.html b/templates/base.html index b77c4c4..5499910 100644 --- a/templates/base.html +++ b/templates/base.html @@ -25,7 +25,6 @@