code: def backend(entry):
      
      return '%s://%s%s' % (
          PROTOCOL, Site.objects.get_current().domain,
          reverse('zinnia:entry_shortlink', args=[base36(entry.pk)]))
docs: Default URL shortener backend for Zinnia.