X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/061f517181630ee982c33aee63965b18965fd5aa..487b568e93d4d60df5aa46c4cdc7d69b7378ccf7:/apps/filebrowser/decorators.py?ds=sidebyside diff --git a/apps/filebrowser/decorators.py b/apps/filebrowser/decorators.py index 070fa2d0..52978898 100644 --- a/apps/filebrowser/decorators.py +++ b/apps/filebrowser/decorators.py @@ -1,4 +1,4 @@ -# coding: utf-8 +# -*- coding: utf-8 from django.contrib.sessions.models import Session from django.shortcuts import get_object_or_404, render_to_response @@ -12,7 +12,7 @@ def flash_login_required(function): Decorator to recognize a user by its session. Used for Flash-Uploading. """ - + def decorator(request, *args, **kwargs): try: engine = __import__(settings.SESSION_ENGINE, {}, {}, ['']) @@ -25,5 +25,3 @@ def flash_login_required(function): request.user = get_object_or_404(User, pk=user_id) return function(request, *args, **kwargs) return decorator - -