I implemented a calendar similar 
https://uggedal.com/journal/creating-a-flexible-monthly-calendar-in-django/ 
with 
a dropdown to filter events on the day of the month. I've got it to where 
I'm doing a query instead of a model to return the events instead of 
workouts in the example to show the event for a day. So I got it to where 
the dates from my db column to populate on the day. So if I create a 
dropdown menu (form) I'm using ajax to get a value from the select option 
from the drop down menu to hit the view but how do I get the view or 
template to refresh with the new filter results. Another thing to add is I 
can get the db to filter with the correct output after selecting an 
option on the dropdown but how do I just refresh the calendar after the 
template or view is so called rendered. I want to stay on the same page as 
far as keeping the content the same except just showing the filtered 
result. I've tried CBV, function based views, http response in view, and 
also putting the {{ calendar }} in an include and then just updating the 
calendar.html and putting the base.html in a render. 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8bb3950f-1120-4a2a-8b3a-0102b643be54o%40googlegroups.com.

Reply via email to