Replies: 1 comment 2 replies
-
You want to use |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
HELP WANTED:I have a Django view that combines and sorts querysets from three different models (Event, Subject, and Article) to create a feed. I'm using the sorted function along with chain to merge the querysets and sort them based on the 'created_at' attribute. The feed is then returned as a list.
However, I'm facing challenges when it comes to filtering the feed based on user-provided search and author parameters. Since the feed is in list form, I can't directly use the filter method from the Django QuerySet.
The
created_by__username__icontains
is not working. Only theModelChoiceField
is working along with it but is want to useCharField
field with it.OR
If anybody have another solution to make the feed. Please share it.
forms.py
Views.py
Beta Was this translation helpful? Give feedback.
All reactions