from django.http import HttpResponseRedirect
from django.contrib import messages
from django.shortcuts import get_object_or_404
from django.views.decorators.http import require_POST

@require_POST
def enqueue(request, config_id):
    config = get_object_or_404(request.user.configs, pk=config_id)

    config.builds.create()

    messages.add_message(request, messages.INFO,
        "Build enqueued.")

    return HttpResponseRedirect(config.get_absolute_url())

from django.http import HttpResponseRedirect
from django.contrib import messages
from django.shortcuts import get_object_or_404
from django.views.decorators.http import require_POST

@require_POST
def enqueue(request, config_id):
    config = get_object_or_404(request.user.configs, pk=config_id)

    config.builds.create()

    messages.add_message(request, messages.INFO,
        "Build enqueued. You will receive an email when the build completes.")

    return HttpResponseRedirect(config.get_absolute_url())

Make it clearer that you get an email when the build completes
Make it clearer that you get an email when the build completes

  from django.http import HttpResponseRedirect
  from django.contrib import messages
  from django.shortcuts import get_object_or_404
  from django.views.decorators.http import require_POST
  
  @require_POST
  def enqueue(request, config_id):
      config = get_object_or_404(request.user.configs, pk=config_id)
  
      config.builds.create()
  
      messages.add_message(request, messages.INFO,
-         "Build enqueued.")
+         "Build enqueued. You will receive an email when the build completes.")
  
      return HttpResponseRedirect(config.get_absolute_url())
  
Make it clearer that you get an email when the build completes
## Code Before:
from django.http import HttpResponseRedirect
from django.contrib import messages
from django.shortcuts import get_object_or_404
from django.views.decorators.http import require_POST

@require_POST
def enqueue(request, config_id):
    config = get_object_or_404(request.user.configs, pk=config_id)

    config.builds.create()

    messages.add_message(request, messages.INFO,
        "Build enqueued.")

    return HttpResponseRedirect(config.get_absolute_url())

## Instruction:
Make it clearer that you get an email when the build completes
## Code After:
from django.http import HttpResponseRedirect
from django.contrib import messages
from django.shortcuts import get_object_or_404
from django.views.decorators.http import require_POST

@require_POST
def enqueue(request, config_id):
    config = get_object_or_404(request.user.configs, pk=config_id)

    config.builds.create()

    messages.add_message(request, messages.INFO,
        "Build enqueued. You will receive an email when the build completes.")

    return HttpResponseRedirect(config.get_absolute_url())
