forked from wiktor/spejstore-new
labels via api + remove redundant nav item
This commit is contained in:
parent
1f5a053a19
commit
3de626d5c5
|
@ -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)
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
|
||||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
||||
<ul class="nav navbar-nav">
|
||||
<li><a href="/item/">All things</a></li>
|
||||
<li><a href="/admin/storage/item/add/">Add thing</a></li>
|
||||
<li><a href="https://wiki.hackerspace.pl/members:services:inventory">How to use</a></li>
|
||||
</ul>
|
||||
|
|
Loading…
Reference in New Issue