[Fixed]-How to pass a variable in the URL in class based views

1👍

As Daniel points out in the comments, this is a syndication framework. Therefore we need to use get_object, and to filter not get on the Meeting object:

class EventFeed(ICalFeed):

    def get_object(self, request, *args, **kwargs):
        return int(kwargs['meeting_id'])

    def items(self, meeting_id):
        return Meeting.objects.filter(id=meeting_id)

Leave a comment