def METHOD_NAME(self, property_id=None):
    if property_id is not None:
        analysis_property_views = self.analysispropertyview_set.filter(property=property_id)
    else:
        analysis_property_views = self.analysispropertyview_set
    return {
        'number_of_analysis_property_views': self.analysispropertyview_set.count(),
        'views': list(analysis_property_views.values_list('id', flat=True).distinct()),
        'cycles': list(analysis_property_views.values_list('cycle', flat=True).distinct())
    }