Ignore some rules

This commit is contained in:
Oliver Walters 2019-04-14 09:39:01 +10:00
parent 29ab19d51d
commit 1ef81ecf2e
3 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ class StockItemSerializer(serializers.ModelSerializer):
- Includes serialization for the linked part
- Includes serialization for the item location
"""
url = serializers.CharField(source='get_absolute_url', read_only=True)
part = PartBriefSerializer(many=False, read_only=True)

View File

@ -41,7 +41,7 @@ class StockLocationDetail(DetailView):
"""
Detailed view of a single StockLocation object
"""
context_object_name = 'location'
template_name = 'stock/location.html'
queryset = StockLocation.objects.all()

View File

@ -8,7 +8,7 @@ clean:
rm -f .coverage
style:
flake8 InvenTree
flake8 InvenTree --ignore=C901,E501
test:
python InvenTree/manage.py check