django-scheduler-sample icon indicating copy to clipboard operation
django-scheduler-sample copied to clipboard

get_calendars_for_object assumes that "id" exists in an object

Open alxnik opened this issue 5 years ago • 0 comments

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

alxnik avatar Oct 31 '20 08:10 alxnik