def patterns(prefix, *args):
    pattern_list = []
    for t in args:
        if isinstance(t, (list, tuple)):
            t = url(prefix=prefix, *t)
        elif isinstance(t, RegexURLPattern):
            t.add_prefix(prefix)
        pattern_list.append(t)
    return pattern_list
ObjectDownloadView.get_file() raises AttributeError if field does
dataset/ETHPy150Open mjtamlyn/django-cbvpatterns/cbvpatterns.py/patterns--crossover with--dataset/ETHPy150Open benoitbryon/django-downloadview/tests/views.py/ObjectDownloadViewTestCase.test_get_file_wrong_field