@property
def broker_url(self):
    broker_url_parts = urlparse(settings.BROKER_URL)
    host = Site.objects.get_current().domain
    return 'pyamqp://{}:{}@{}:{}/{}'.format(self.owner.rabbitmq_username, self.owner.rabbitmq_password, host, settings.RABBITMQ_PORT, self.vhost)
@property
def broker_url(self):
    broker_url_parts = urlparse(settings.BROKER_URL)
    host = Site.objects.get_current().domain
    return 'pyamqp://{}:{}@{}:{}/{}'.format(self.owner.rabbitmq_username, self.owner.rabbitmq_password, host, settings.RABBITMQ_PORT, self.vhost)