PEP8 cleanup, remove unused imports, fix permission check when removing metadata from a document
This commit is contained in:
@@ -2,7 +2,6 @@ from __future__ import unicode_literals
|
||||
|
||||
import logging
|
||||
|
||||
from django.db.models import Q
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from .models import Index, IndexInstanceNode
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from south.utils import datetime_utils as datetime
|
||||
from south.db import db
|
||||
from south.v2 import SchemaMigration
|
||||
from django.db import models
|
||||
@@ -11,7 +10,6 @@ class Migration(SchemaMigration):
|
||||
# Deleting model 'DocumentRenameCount'
|
||||
db.delete_table(u'document_indexing_documentrenamecount')
|
||||
|
||||
|
||||
def backwards(self, orm):
|
||||
# Adding model 'DocumentRenameCount'
|
||||
db.create_table(u'document_indexing_documentrenamecount', (
|
||||
@@ -22,7 +20,6 @@ class Migration(SchemaMigration):
|
||||
))
|
||||
db.send_create_signal('document_indexing', ['DocumentRenameCount'])
|
||||
|
||||
|
||||
models = {
|
||||
u'document_indexing.index': {
|
||||
'Meta': {'object_name': 'Index'},
|
||||
@@ -75,4 +72,4 @@ class Migration(SchemaMigration):
|
||||
}
|
||||
}
|
||||
|
||||
complete_apps = ['document_indexing']
|
||||
complete_apps = ['document_indexing']
|
||||
|
||||
Reference in New Issue
Block a user