Archived
flat admin theme, fix query param
This commit is contained in:
1 parent
378a9e6f8c
commit
5fa95c270c
2 files changed
+3
-2
No files matched your search
@@ -6,7 +6,7 @@ from neuf_kerberos.utils import get_kerberos_principal, format_krb5_date
|
||||
|
||||
@api_view(['GET', 'OPTIONS', 'HEAD'])
|
||||
def client_status(request):
|
||||
krb5_principal = get_kerberos_principal(request.QUERY_PARAMS.get('username'))
|
||||
krb5_principal = get_kerberos_principal(request.GET.get('username'))
|
||||
if not krb5_principal:
|
||||
return Response({'active': False})
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
"""
|
||||
Ref: https://docs.djangoproject.com/en/1.7/ref/settings/
|
||||
Ref: https://docs.djangoproject.com/en/1.8/ref/settings/
|
||||
"""
|
||||
|
||||
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
||||
@@ -23,6 +23,7 @@ ALLOWED_HOSTS = ['*']
|
||||
|
||||
# Application definition
|
||||
INSTALLED_APPS = (
|
||||
'flat',
|
||||
'django.contrib.admin',
|
||||
'django.contrib.auth',
|
||||
'django.contrib.contenttypes',
|
||||
|
||||
Reference in new issue
Block a user