Make deleted field read-only for the employee

This commit is contained in:
Tanner Collin 2018-01-21 23:43:15 +00:00
parent 3b475bf832
commit a3654f61b9

View File

@ -142,7 +142,7 @@ class EmployerSerializer(serializers.ModelSerializer):
class Meta:
model = Manage
fields = ('uuid', 'client', 'note', 'approved', 'prices', 'deleted')
read_only_fields = ('note',)
read_only_fields = ('note', 'deleted')
def get_client(self, obj):
if obj.approved == True: