event.url is not updated when changing parent
I'm synchronizing two calendars using caldav. After upgrading caldav from 0.1.4 to 0.1.12 recently, it stopped working. What I basically do is:
fetch event from one calendar
change event.parent to other calendar
Now I get Server error from PUT request.
After some examination I found that url of the PUT request remains still the same, even after changing parent calendar. URL used is taken from event.url, which is not changed. It comes from objects.py, line 430.
So I had to do one more step to make it work:
- "del event.url" before "event.save()"
(I'm not really sure if it will not break something later, but it seems to work now)
Now it works fine, but I believe the event shoudn't behave this way.