diff --git a/aleksis/core/util/core_helpers.py b/aleksis/core/util/core_helpers.py index a1423bd5b4c15dd50d0665e1257b822bf55115c0..7cc3ebce7b89be40a4e7a9cfefd61cb9dca2ec1b 100644 --- a/aleksis/core/util/core_helpers.py +++ b/aleksis/core/util/core_helpers.py @@ -248,12 +248,6 @@ def objectgetter_optional( return get_object -def handle_uploaded_file(f, filename: str): - with open(filename, "wb+") as destination: - for chunk in f.chunks(): - destination.write(chunk) - - @cache_memoize(3600) def get_content_type_by_perm(perm: str) -> Union["ContentType", None]: from django.contrib.contenttypes.models import ContentType # noqa