PEP8 cleanups, unused imports cleanups
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
from django.db import transaction
|
||||
from django.db.models.signals import post_save
|
||||
from django.db.utils import DatabaseError
|
||||
from django.dispatch import receiver
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import datetime
|
||||
from south.db import db
|
||||
from south.v2 import SchemaMigration
|
||||
from django.db import models
|
||||
@@ -17,12 +16,10 @@ class Migration(SchemaMigration):
|
||||
))
|
||||
db.send_create_signal('installation', ['Installation'])
|
||||
|
||||
|
||||
def backwards(self, orm):
|
||||
# Deleting model 'Installation'
|
||||
db.delete_table('installation_installation')
|
||||
|
||||
|
||||
models = {
|
||||
'installation.installation': {
|
||||
'Meta': {'object_name': 'Installation'},
|
||||
@@ -33,4 +30,4 @@ class Migration(SchemaMigration):
|
||||
}
|
||||
}
|
||||
|
||||
complete_apps = ['installation']
|
||||
complete_apps = ['installation']
|
||||
|
||||
@@ -17,7 +17,7 @@ def namespace_list(request):
|
||||
Installation().get_properties()
|
||||
|
||||
return render_to_response('generic_list.html', {
|
||||
'object_list': PropertyNamespace.get_all(),
|
||||
'object_list': PropertyNamespace.get_all(),
|
||||
'title': _(u'installation property namespaces'),
|
||||
'hide_object': True,
|
||||
}, context_instance=RequestContext(request))
|
||||
|
||||
Reference in New Issue
Block a user