hi guys this is my view def premierleague(request): news_list = LeagueNews.objects.filter((publication_date__lte=timezone.now)|(league_name='english')).order_by('-publication_date')[:10] return render(request, 'core/premierleague.html', {'news_list':news_list}) i want to filter my objects by two columns publication_date and league_name but it doesn't work
-- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/58a97b33-b41e-4f87-a003-e9f82bcb9790%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.