I'm trying to build a channel. I don't want the other users have an access to the detail views. The thing is I can make it accessible to one but I don't know how to make it accessible for both consumer & seller?

```
class Group(models.Model):
    consumer = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE, related_name="", blank=True, null=True)
    name = models.CharField(max_length=10)
    seller = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE, related_name="")
    ...

    def __str__(self):
        return self.name

#Detail channel
@method_decorator(login_required(login_url='/cooker/login'),name="dispatch")
class CheckoutDetail(generic.DetailView):
    ...

    def get(self,request,*args,**kwargs):
        self.object = self.get_object()
        if self.object.consumer or self.object.seller != request.user: #it's redirect me to home page
            return HttpResponseRedirect('/')    

        return super(CheckoutDetail, self).get(request,*args,**kwargs)

```