-
Notifications
You must be signed in to change notification settings - Fork 845
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
solution #490
base: master
Are you sure you want to change the base?
solution #490
Conversation
taxi/models.py
Outdated
@@ -29,5 +29,5 @@ class Car(models.Model): | |||
manufacturer = models.ForeignKey(Manufacturer, on_delete=models.CASCADE) | |||
drivers = models.ManyToManyField(Driver, related_name="cars") | |||
|
|||
def __str__(self): | |||
def __str__(self) -> model: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It returns str
taxi/models.py
Outdated
def __str__(self): | ||
return self.model | ||
def __str__(self) -> str: | ||
return f"{self.model}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
f-string is redundant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls delete db.sqlite3 from pr. and it in .gitignore
No description provided.