You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the tutorial is currently written, I needed to add from django.utils import timezone for the filter for published date to work properly Post.objects.filter(published_date__isnull=False).
The text was updated successfully, but these errors were encountered:
As the tutorial is currently written, I needed to add
from django.utils import timezone
for the filter for published date to work properlyPost.objects.filter(published_date__isnull=False)
.The text was updated successfully, but these errors were encountered: