Skip to content

Commit

Permalink
Update models.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekaterina-Vititneva committed May 19, 2024
1 parent ac15e01 commit bbe9ddd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 07_Testing-CI-CD/airline0/flights/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def __str__(self):

def is_valid_flight(self):
#return self.origin != self.destination and self.duration > 0
return self.origin != self.destination or self.duration > 0
return self.origin != self.destination and self.duration > 0


class Passenger(models.Model):
Expand Down

0 comments on commit bbe9ddd

Please sign in to comment.