PEP8 cleanup, unused imports, missing imports, style cleanups
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
# encoding: utf-8
|
||||
import datetime
|
||||
from south.db import db
|
||||
from south.v2 import SchemaMigration
|
||||
from django.db import models
|
||||
|
||||
|
||||
class Migration(SchemaMigration):
|
||||
|
||||
def forwards(self, orm):
|
||||
|
||||
# Adding model 'Index'
|
||||
db.create_table('document_indexing_index', (
|
||||
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
|
||||
@@ -52,9 +51,7 @@ class Migration(SchemaMigration):
|
||||
))
|
||||
db.send_create_signal('document_indexing', ['DocumentRenameCount'])
|
||||
|
||||
|
||||
def backwards(self, orm):
|
||||
|
||||
# Deleting model 'Index'
|
||||
db.delete_table('document_indexing_index')
|
||||
|
||||
@@ -67,7 +64,6 @@ class Migration(SchemaMigration):
|
||||
# Deleting model 'DocumentRenameCount'
|
||||
db.delete_table('document_indexing_documentrenamecount')
|
||||
|
||||
|
||||
models = {
|
||||
'auth.group': {
|
||||
'Meta': {'object_name': 'Group'},
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
# encoding: utf-8
|
||||
import datetime
|
||||
from south.db import db
|
||||
from south.v2 import SchemaMigration
|
||||
from django.db import models
|
||||
|
||||
|
||||
class Migration(SchemaMigration):
|
||||
|
||||
def forwards(self, orm):
|
||||
|
||||
# Deleting model 'DocumentRenameCount'
|
||||
db.delete_table('document_indexing_documentrenamecount')
|
||||
|
||||
@@ -20,9 +19,7 @@ class Migration(SchemaMigration):
|
||||
# Deleting model 'Index'
|
||||
db.delete_table('document_indexing_index')
|
||||
|
||||
|
||||
def backwards(self, orm):
|
||||
|
||||
# Adding model 'DocumentRenameCount'
|
||||
db.create_table('document_indexing_documentrenamecount', (
|
||||
('suffix', self.gf('django.db.models.fields.PositiveIntegerField')(blank=True)),
|
||||
@@ -67,9 +64,8 @@ class Migration(SchemaMigration):
|
||||
))
|
||||
db.send_create_signal('document_indexing', ['Index'])
|
||||
|
||||
|
||||
models = {
|
||||
|
||||
|
||||
}
|
||||
|
||||
complete_apps = ['document_indexing']
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
# encoding: utf-8
|
||||
import datetime
|
||||
from south.db import db
|
||||
from south.v2 import SchemaMigration
|
||||
from django.db import models
|
||||
|
||||
|
||||
class Migration(SchemaMigration):
|
||||
|
||||
def forwards(self, orm):
|
||||
|
||||
# Adding model 'IndexTemplateNode'
|
||||
db.create_table('document_indexing_indextemplatenode', (
|
||||
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
|
||||
@@ -53,9 +52,7 @@ class Migration(SchemaMigration):
|
||||
))
|
||||
db.send_create_signal('document_indexing', ['Index'])
|
||||
|
||||
|
||||
def backwards(self, orm):
|
||||
|
||||
# Deleting model 'IndexTemplateNode'
|
||||
db.delete_table('document_indexing_indextemplatenode')
|
||||
|
||||
@@ -68,7 +65,6 @@ class Migration(SchemaMigration):
|
||||
# Deleting model 'Index'
|
||||
db.delete_table('document_indexing_index')
|
||||
|
||||
|
||||
models = {
|
||||
'auth.group': {
|
||||
'Meta': {'object_name': 'Group'},
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
# encoding: utf-8
|
||||
import datetime
|
||||
from south.db import db
|
||||
from south.v2 import SchemaMigration
|
||||
from django.db import models
|
||||
|
||||
|
||||
class Migration(SchemaMigration):
|
||||
|
||||
def forwards(self, orm):
|
||||
|
||||
# Adding model 'DocumentRenameCount'
|
||||
db.create_table('document_indexing_documentrenamecount', (
|
||||
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
|
||||
@@ -17,13 +16,10 @@ class Migration(SchemaMigration):
|
||||
))
|
||||
db.send_create_signal('document_indexing', ['DocumentRenameCount'])
|
||||
|
||||
|
||||
def backwards(self, orm):
|
||||
|
||||
# Deleting model 'DocumentRenameCount'
|
||||
db.delete_table('document_indexing_documentrenamecount')
|
||||
|
||||
|
||||
models = {
|
||||
'auth.group': {
|
||||
'Meta': {'object_name': 'Group'},
|
||||
|
||||
@@ -1,29 +1,25 @@
|
||||
# encoding: utf-8
|
||||
import datetime
|
||||
from south.db import db
|
||||
from south.v2 import SchemaMigration
|
||||
from django.db import models
|
||||
|
||||
|
||||
class Migration(SchemaMigration):
|
||||
|
||||
def forwards(self, orm):
|
||||
|
||||
# Adding unique constraint on 'Index', fields ['name']
|
||||
db.create_unique('document_indexing_index', ['name'])
|
||||
|
||||
# Adding unique constraint on 'Index', fields ['title']
|
||||
db.create_unique('document_indexing_index', ['title'])
|
||||
|
||||
|
||||
def backwards(self, orm):
|
||||
|
||||
# Removing unique constraint on 'Index', fields ['title']
|
||||
db.delete_unique('document_indexing_index', ['title'])
|
||||
|
||||
# Removing unique constraint on 'Index', fields ['name']
|
||||
db.delete_unique('document_indexing_index', ['name'])
|
||||
|
||||
|
||||
models = {
|
||||
'auth.group': {
|
||||
'Meta': {'object_name': 'Group'},
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import datetime
|
||||
from south.db import db
|
||||
from south.v2 import SchemaMigration
|
||||
from django.db import models
|
||||
@@ -16,12 +15,10 @@ class Migration(SchemaMigration):
|
||||
))
|
||||
db.create_unique('document_indexing_index_document_types', ['index_id', 'documenttype_id'])
|
||||
|
||||
|
||||
def backwards(self, orm):
|
||||
# Removing M2M table for field document_types on 'Index'
|
||||
db.delete_table('document_indexing_index_document_types')
|
||||
|
||||
|
||||
models = {
|
||||
'auth.group': {
|
||||
'Meta': {'object_name': 'Group'},
|
||||
@@ -149,4 +146,4 @@ class Migration(SchemaMigration):
|
||||
}
|
||||
}
|
||||
|
||||
complete_apps = ['document_indexing']
|
||||
complete_apps = ['document_indexing']
|
||||
|
||||
Reference in New Issue
Block a user