code: def get_absolute_url(self, domain=False):
          " Get object's URL. "
          category = self.category
  
          kwargs = {
              'slug': self.slug,
          }
  
          if self.static:
              kwargs['id'] = self.pk
              if category.tree_parent_id:
                  kwargs['category'] = category.tree_path
                  url = reverse('static_detail', kwargs=kwargs)
              else:
                  url = reverse('home_static_detail', kwargs=kwargs)
          else:
              publish_from = localize(self.publish_from)
              kwargs.update({
                      'year': publish_from.year,
                      'month': publish_from.month,
                      'day': publish_from.day,
                  })
              if category.tree_parent_id:
                  kwargs['category'] = category.tree_path
                  url = reverse('object_detail', kwargs=kwargs)
              else:
                  url = reverse('home_object_detail', kwargs=kwargs)
  
          if category.site_id != settings.SITE_ID or domain:
              return 'http://' + category.site.domain + url
          return urf get_absolute_url(self, domain=False):
          " Get object's URL. "
          category = self.category
  
          kwargs = {
              'slug': self.slug,
          }
  
          if self.static:
              kwargs['id'] = self.pk
              if category.tree_parent_id:
                  kwargs['category'] = category.tree_path
                  url = reverse('static_detail', kwargs=kwargs)
              else:
                  url = reverse('home_static_detail', kwargs=kwargs)
          else:
              publish_from = localize(self.publish_from)
              kwargs.update({
                      'year': publish_from.year,
                      'month': publish_from.month,
                      'day': publish_from.day,
                  })
              if category.tree_parent_id:
                  kwargs['category'] = category.tree_path
                  url = reverse('object_detail', kwargs=kwargs)
              else:
                  url = reverse('home_object_detail', kwargs=kwargs)
  
          if category.site_id != settings.SITE_ID or domain:
              return 'http://' + category.site.domain + url
          return url
docs: Get object's URL.