Return a generator yielding uploads referenced in the given text.

def get_uploads(text):
    """
    Return a generator yielding uploads referenced in the given text.

    """
    uploads = []
    for match in UPLOAD_RE.finditer(text):
        try:
            upload = FileUpload.objects.get(slug=match.group(1))
        except FileUpload.DoesNotExist:
            continue
        yield upload