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 f5bbb08 commit 5fabffa
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion 07_Testing-CI-CD/airline0/flights/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ 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



class Passenger(models.Model):
Expand Down

0 comments on commit 5fabffa

Please sign in to comment.