mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge pull request #16 from SchrodingersGat/master
Added gitattributes file
This commit is contained in:
commit
ef54870f7c
6
.gitattributes
vendored
Normal file
6
.gitattributes
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
* text=auto
|
||||
|
||||
*.py text
|
||||
*.md text
|
||||
*.html text
|
||||
*.txt text
|
@ -12,9 +12,9 @@ class ParameterSerializer(serializers.ModelSerializer):
|
||||
|
||||
|
||||
class PartSerializer(serializers.ModelSerializer):
|
||||
|
||||
|
||||
params = ParameterSerializer(source='parameters', many=True)
|
||||
|
||||
|
||||
class Meta:
|
||||
model = Part
|
||||
fields = ('pk',
|
||||
@ -24,12 +24,13 @@ class PartSerializer(serializers.ModelSerializer):
|
||||
'category',
|
||||
'stock',
|
||||
'params')
|
||||
|
||||
|
||||
|
||||
|
||||
class PartCategorySerializer(serializers.ModelSerializer):
|
||||
class Meta:
|
||||
model = PartCategory
|
||||
fields = ('pk',
|
||||
'name',
|
||||
'description',
|
||||
'parent',
|
||||
'path')
|
||||
|
Loading…
Reference in New Issue
Block a user