django-scheduler
django-scheduler copied to clipboard
Should an occurrence be an event ?
Hi all,
I am currently trying to integrate full calendar to my project and I have a problem displaying occurrences of events.
My event is the 1st of July with a daily repetition up to 31st of July.
When loading the week view on the 1st of July, my event and its next occurrences of the week are well displayed. Then I switch to the next week and no displayed occurrence. I display the month view of July and all occurrences are displayed.
I checked the api_occurrence view and it comes from the fact that the search is based on event first and then occurrences. If I want to display a week when I have no event but just occurrences, nothing is returned.
That's why I am asking this question about this event/occurrence relation. Managing occurrences like events should make the search (and display) easier. Or maybe I am missing something...
I hope I was clear enough
You cant treat occurrences as events because of never-ending events. That would cause your server to fill up instantly! Instead occurrences are calculated at view time and only stored if modified. This means its just an issue with which occurrences are being calculated to be shown in that case.