Make deleted field read-only for the employee
This commit is contained in:
parent
3b475bf832
commit
a3654f61b9
|
@ -142,7 +142,7 @@ class EmployerSerializer(serializers.ModelSerializer):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Manage
|
model = Manage
|
||||||
fields = ('uuid', 'client', 'note', 'approved', 'prices', 'deleted')
|
fields = ('uuid', 'client', 'note', 'approved', 'prices', 'deleted')
|
||||||
read_only_fields = ('note',)
|
read_only_fields = ('note', 'deleted')
|
||||||
|
|
||||||
def get_client(self, obj):
|
def get_client(self, obj):
|
||||||
if obj.approved == True:
|
if obj.approved == True:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user