django-scheduler-sample
django-scheduler-sample copied to clipboard
get_calendars_for_object assumes that "id" exists in an object
If in a model field the parameter primary_key=True is set, the id field is not created. However get_calendars_for_object filters on the .id of the object and fails in such a case.
It should filter on the .pk value which points to the primary key of the object