-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modifying event duplicates persisted occurrences #4
Comments
There is a test which currently fails. There is a reference page with some insight here: https://github.com/bartekgorny/django-schedule/wiki/Modifying-events - solving the issue requires some design decisions relating to logic rathere then implementation. |
I fixed this by doing the following: models/events.py: line 135: But I'm not sure if this breaks anything elsewhere... everything worked in my project.. This worked for me because:
|
On Mon, 12 Sep 2011 07:07:04 -0700
Did you run tests? BG Do you know, where your towel is? |
No new tests fail, I get 2 failed tests with HEAD but the change doesn't introduce any new failures. As you said it is a design decision and one that I am not in a position to make, however, I do feel that exceptions to a rule are no longer part of that rule, as they would break it. The main point of this change is as follows:
edit - it seems this only fixes one side of the issue.. I'm working on a better fix now |
Unfortunately in order to "properly" fix it, I ended up "updating" the start and end dates for occurrences: The tests all pass with the above commit but.. the solution isn't exactly ideal.. it works for my project though. I'll leave you to decide :) Note: There is a print statement that wasn't meant to be there, sorry. |
prevent false matches for 'schedule' url
If you change start/end of an event which has some persisted occurrences, the original occurrences reappear thus causing duplication (reported by gautamadude).
The text was updated successfully, but these errors were encountered: