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)
|
||||
|
||||
class Meta:
|
||||
model = Promotion
|
||||
model = Plan
|
||||
fields = (
|
||||
"title",
|
||||
"description",
|
||||
"base_amount",
|
||||
"user",
|
||||
"application",
|
||||
"promotion_amount"
|
||||
)
|
||||
read_only_fields = ('user','application', "promotion_amount")
|
||||
read_only_fields = ('application', "promotion_amount", "title", "description")
|
||||
|
||||
# def get_promotion_amount(self, obj):
|
||||
# user = self.context['request'].user
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue