def get_absolute_url(self):
        if self.target is not None:
            if hasattr(self.target, 'get_beacon_url'):
                return self.target.get_beacon_url()
            else:
                return self.target.get_absolute_url()
dataset/ETHPy150Open monokrome/django-webbugger/webbugger/models.py/Beacon.get_absolute_url/original