code: def get_download_url(self, instance, default=None):
          
          download = default
          # calculate the download url
          download = "{url}/at_download/{fieldname}".format(
              url=instance.absolute_url(), fieldname=self.get_field_name())
          return download
docs: Calculate the download url