Skip to content

Commit

Permalink
[#17] 采购模块
Browse files Browse the repository at this point in the history
修改一个字段、给前端展示相应字段的中文
  • Loading branch information
eyeeco committed Jan 17, 2018
1 parent cf84693 commit 70215a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Procurement/serializers/materialsub.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ class MaterialSubApplyUpdateSerializer(serializers.ModelSerializer):

class Meta:
model = MaterialSubApply
fields = '__all__'
read_only_fields = ('applicant',)
fields = ('figure_code','work_order','production','reason')



class MaterialSubApplyListSerializer(MaterialSubApplySerializer):
Expand Down
6 changes: 5 additions & 1 deletion Procurement/serializers/status_change.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@


class StatusChangeSerializer(serializers.ModelSerializer):

original_status_name = serializers.CharField(
source='get_original_status_display')
new_status_name = serializers.CharField(
source='get_new_status_display')

class Meta:
model = StatusChange
fields = '__all__'
Expand Down

0 comments on commit 70215a6

Please sign in to comment.