We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abb3ab0 commit 22cc217Copy full SHA for 22cc217
polls/models.py
@@ -14,9 +14,9 @@ def __str__(self) -> str:
14
def was_published_recently(self) -> bool:
15
now = timezone.now()
16
return now - datetime.timedelta(days=1) <= self.pub_date <= now
17
- was_published_recently.admin_order_field = 'pub_date'
18
- was_published_recently.boolean = True
19
- was_published_recently.short_description = 'Published recently?'
+ was_published_recently.admin_order_field = 'pub_date' # type: ignore
+ was_published_recently.boolean = True # type: ignore
+ was_published_recently.short_description = 'Published recently?' # type: ignore
20
21
22
class Choice(models.Model):
0 commit comments