Commit 3c1924c5 authored by Administrator's avatar Administrator

cosmetics

parent 87a93355
...@@ -43,7 +43,6 @@ class CorpusAdmin(admin.ModelAdmin): ...@@ -43,7 +43,6 @@ class CorpusAdmin(admin.ModelAdmin):
list_display = ('title', 'date', 'database', 'analyst') list_display = ('title', 'date', 'database', 'analyst')
inlines = [DocumentInLine,] inlines = [DocumentInLine,]
def has_change_permission(self, request, obj=None): def has_change_permission(self, request, obj=None):
has_class_permission = super(CorpusAdmin, self).has_change_permission(request, obj) has_class_permission = super(CorpusAdmin, self).has_change_permission(request, obj)
if not has_class_permission: if not has_class_permission:
......
from django.shortcuts import redirect from django.shortcuts import redirect
from django.shortcuts import render from django.shortcuts import render
from django.http import Http404, HttpResponse from django.http import Http404, HttpResponse
from django.template.loader import get_template from django.template.loader import get_template
from django.template import Context from django.template import Context
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment