<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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