percentage done
This commit is contained in:
parent
b29e7207a9
commit
435a4d6afd
1 changed files with 4 additions and 3 deletions
|
|
@ -23,14 +23,15 @@ class PlanSerializer(serializers.ModelSerializer):
|
||||||
promotion_amount = serializers.IntegerField(read_only=True)
|
promotion_amount = serializers.IntegerField(read_only=True)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Promotion
|
model = Plan
|
||||||
fields = (
|
fields = (
|
||||||
|
"title",
|
||||||
|
"description",
|
||||||
"base_amount",
|
"base_amount",
|
||||||
"user",
|
|
||||||
"application",
|
"application",
|
||||||
"promotion_amount"
|
"promotion_amount"
|
||||||
)
|
)
|
||||||
read_only_fields = ('user','application', "promotion_amount")
|
read_only_fields = ('application', "promotion_amount", "title", "description")
|
||||||
|
|
||||||
# def get_promotion_amount(self, obj):
|
# def get_promotion_amount(self, obj):
|
||||||
# user = self.context['request'].user
|
# user = self.context['request'].user
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue