django-activity-stream

Django activity stream filter Actions by foreignkey in target model

六月ゝ 毕业季﹏ 提交于 2019-12-08 03:16:57
问题 I would like to filter Actions for particular queryset. To this moment I was grabbing data by generating a model stream on desired model. model_stream(FillingSystem) I would like to extend this functionality and have something like this model_stream(FillingSystem.objects.filter(client__slug='my-slug')) or model_stream(FillingSystem.objects.filter(client=Client.objects.get(slug='my-slug'))) this model looks like this: class FillingSystem(models.Model): client = models.ForeignKey('accounts