old_contents: import requests
  from background_task import background
  from .models import Moderation
  
  
  @background(schedule=2)
  def async_get_request(url, params):
      return requests.get(url, params)
  
  
  @background(schedule=2)
  def post_moderation_async(moderation_id, data):
      from .slack import SlackSdk
      slack = SlackSdk()
      response_data = slack.post_moderation(
          text=data['content'])
      message_id = response_data.get('ts')
      moderation = Moderation.objects.get(id=moderation_id)
      moderation.message_id = message_id
      moderation.save()
  
new_contents: import requests
  from .models import Moderation
  
  
  def async_get_request(url, params):
      return requests.get(url, params)
  
  
  def post_moderation_async(moderation_id, data):
      from .slack import SlackSdk
      slack = SlackSdk()
      response_data = slack.post_moderation(
          text=data['content'])
      message_id = response_data.get('ts')
      moderation = Moderation.objects.get(id=moderation_id)
      moderation.message_id = message_id
      moderation.save()
  
subject: remove background task to reduce response time on buttons