# -*- coding: utf-8 -*-
#
# dcolumn/common/decorators.py
#

from django.contrib.auth import REDIRECT_FIELD_NAME
from django.contrib.auth.decorators import login_required

from dcolumn.dcolumns.manager import dcolumn_manager


def dcolumn_login_required(function=None,
                           redirect_field_name=REDIRECT_FIELD_NAME,
                           login_url=None):
    """
    Decorator for views that checks that the user is logged in, redirecting
    to the log-in page if necessary.
    """
    if dcolumn_manager.get_api_auth_state():
        return function

    return login_required(function, redirect_field_name=redirect_field_name,
                          login_url=login_url)

@@ -529,12 +529,8 @@
 ger.
-get_
 api_
@@ -543,10 +543,8 @@
 tate
-()
 :%0A  

Change to the decorators, because of changes to the manager.