Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Den-k0 committed Dec 11, 2024
1 parent c50e9e3 commit 8d3701f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cinema/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,11 @@ def create(self, validated_data):

def update(self, instance, validated_data):
instance.first_name = validated_data.get(
"first_name", instance.first_name)
"first_name", instance.first_name
)
instance.last_name = validated_data.get(
"last_name", instance.last_name)
"last_name", instance.last_name
)

instance.save()
return instance
Expand All @@ -73,7 +75,8 @@ def update(self, instance, validated_data):
instance.name = validated_data.get("name", instance.name)
instance.rows = validated_data.get("rows", instance.rows)
instance.seats_in_row = validated_data.get(
"seats_in_row", instance.seats_in_row)
"seats_in_row", instance.seats_in_row
)

instance.save()
return instance

0 comments on commit 8d3701f

Please sign in to comment.