text: # -*- coding: utf-8 -*-
  import datetime
  from south.db import db, engine
  from south.v2 import SchemaMigration
  from django.db import models
  
  
  class Migration(SchemaMigration):
  
      def change_id(self, table_name, old_id, new_id, where_field='citype_id'):
          db.execute('UPDATE {} SET {} = {} WHERE {} = {}'.format(
              table_name, where_field, new_id, where_field, old_id,
          ))
  
      def change_citype_ids(self):
          db.execute('UPDATE cmdb_citype SET id = id + 1000 WHERE id > 10')
  
      def bumped_auto_increment(self):
          """For sqlite3 bumped is not needed"""
          if engine == 'south.db.mysql':
              db.execute('ALTER TABLE cmdb_citype AUTO_INCREMENT = 1000')
  
      def set_foreign_key_checks(self, value):
          if engine == 'south.db.mysql':
              db.execute('SET FOREIGN_KEY_CHECKS={};'.format(int(value)))
          elif engine == 'south.db.sqlite3':
              value = 'ON' if value else 'OFF'
              db.execute('PRAGMA foreign_keys = {};'.format(value))
  
      def forwards(self, orm):
          """Migration moves ci_types ids added by the user. Migration reserves
          ids from 1 to 1000 ci_type for added by fixtures.
          """
          db.start_transaction()
          self.set_foreign_key_checks(False)
  
          for ci_type_id in db.execute(
              'SELECT id FROM cmdb_citype WHERE id > 10;'
          ):
              old_id = ci_type_id[0]
              new_id = old_id + 1000
              self.change_id('cmdb_cilayer_connected_types', old_id, new_id)
              self.change_id('cmdb_ciattribute_ci_types', old_id, new_id)
              self.change_id('cmdb_ci', old_id, new_id, where_field='type_id')
          self.bumped_auto_increment()
          self.change_citype_ids()
  
          self.set_foreign_key_checks(True)
          db.commit_transaction()
  
      def backwards(self, orm):
          """Remove new ci types"""
          db.start_transaction()
          db.execute('DELETE FROM cmdb_cilayer_connected_types WHERE citype_id > 10 and citype_id < 1000;')
          db.execute('DELETE FROM cmdb_ciattribute_ci_types WHERE citype_id > 10 and citype_id < 1000;')
          db.execute('DELETE FROM cmdb_ci WHERE type_id > 10 and type_id < 1000;')
          db.execute('DELETE FROM cmdb_citype WHERE id > 10 and id < 1000;')
          db.commit_transaction()
  
      models = {
          'auth.group': {
              'Meta': {'object_name': 'Group'},
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
              'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
          },
          'auth.permission': {
              'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
              'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
              'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
          },
          'auth.user': {
              'Meta': {'object_name': 'User'},
              'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
              'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
              'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
              'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
              'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
              'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
              'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
              'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
              'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
          },
          'cmdb.archivedcichange': {
              'Meta': {'unique_together': "((u'content_type', u'object_id'),)", 'object_name': 'ArchivedCIChange'},
              'cache_version': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
              'ci': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cmdb.CI']", 'null': 'True', 'blank': 'True'}),
              'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']", 'null': 'True'}),
              'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'external_key': ('django.db.models.fields.CharField', [], {'max_length': '60', 'blank': 'True'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'message': ('django.db.models.fields.CharField', [], {'max_length': '1024'}),
              'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
              'priority': ('django.db.models.fields.IntegerField', [], {'max_length': '11'}),
              'registration_type': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '11'}),
              'time': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'type': ('django.db.models.fields.IntegerField', [], {'max_length': '11', 'db_index': 'True'})
          },
          'cmdb.archivedcichangecmdbhistory': {
              'Meta': {'object_name': 'ArchivedCIChangeCMDBHistory'},
              'cache_version': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
              'ci': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cmdb.CI']"}),
              'comment': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
              'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'field_name': ('django.db.models.fields.CharField', [], {'default': "u''", 'max_length': '64'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'new_value': ('django.db.models.fields.CharField', [], {'default': "u''", 'max_length': '255'}),
              'old_value': ('django.db.models.fields.CharField', [], {'default': "u''", 'max_length': '255'}),
              'time': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'user': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['auth.User']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'})
          },
          'cmdb.archivedcichangegit': {
              'Meta': {'object_name': 'ArchivedCIChangeGit'},
              'author': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
              'cache_version': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
              'changeset': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80', 'db_index': 'True'}),
              'ci': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cmdb.CI']", 'null': 'True', 'blank': 'True'}),
              'comment': ('django.db.models.fields.CharField', [], {'max_length': '1000'}),
              'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'file_paths': ('django.db.models.fields.CharField', [], {'max_length': '3000'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'time': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
          },
          'cmdb.archivedcichangepuppet': {
              'Meta': {'object_name': 'ArchivedCIChangePuppet'},
              'cache_version': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
              'ci': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cmdb.CI']", 'null': 'True', 'blank': 'True'}),
              'configuration_version': ('django.db.models.fields.CharField', [], {'max_length': '30', 'db_index': 'True'}),
              'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'host': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'kind': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
              'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'status': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
              'time': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'})
          },
          'cmdb.archivedcichangezabbixtrigger': {
              'Meta': {'object_name': 'ArchivedCIChangeZabbixTrigger'},
              'cache_version': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
              'ci': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cmdb.CI']", 'null': 'True', 'blank': 'True'}),
              'comments': ('django.db.models.fields.CharField', [], {'max_length': '1024'}),
              'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'description': ('django.db.models.fields.CharField', [], {'max_length': '1024'}),
              'host': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
              'host_id': ('django.db.models.fields.BigIntegerField', [], {}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'lastchange': ('django.db.models.fields.CharField', [], {'max_length': '1024'}),
              'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'priority': ('django.db.models.fields.IntegerField', [], {}),
              'status': ('django.db.models.fields.IntegerField', [], {}),
              'trigger_id': ('django.db.models.fields.BigIntegerField', [], {})
          },
          'cmdb.archivedpuppetlog': {
              'Meta': {'object_name': 'ArchivedPuppetLog'},
              'cache_version': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
              'cichange': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cmdb.ArchivedCIChangePuppet']"}),
              'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'level': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
              'message': ('django.db.models.fields.CharField', [], {'max_length': '1024'}),
              'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'source': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
              'tags': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
              'time': ('django.db.models.fields.DateTimeField', [], {})
          },
          'cmdb.ci': {
              'Meta': {'unique_together': "((u'content_type', u'object_id'),)", 'object_name': 'CI'},
              'added_manually': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
              'barcode': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '255', 'unique': 'True', 'null': 'True'}),
              'business_service': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
              'cache_version': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
              'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'}),
              'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'layers': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['cmdb.CILayer']", 'symmetrical': 'False'}),
              'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
              'object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
              'owners': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['cmdb.CIOwner']", 'through': "orm['cmdb.CIOwnership']", 'symmetrical': 'False'}),
              'pci_scope': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
              'relations': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['cmdb.CI']", 'through': "orm['cmdb.CIRelation']", 'symmetrical': 'False'}),
              'state': ('django.db.models.fields.IntegerField', [], {'default': '2', 'max_length': '11'}),
              'status': ('django.db.models.fields.IntegerField', [], {'default': '2', 'max_length': '11'}),
              'technical_service': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
              'type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cmdb.CIType']"}),
              'uid': ('django.db.models.fields.CharField', [], {'max_length': '100', 'unique': 'True', 'null': 'True', 'blank': 'True'}),
              'zabbix_id': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'})
          },
          'cmdb.ciattribute': {
              'Meta': {'object_name': 'CIAttribute'},
              'attribute_type': ('django.db.models.fields.IntegerField', [], {'max_length': '11'}),
              'cache_version': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
              'choices': ('django.db.models.fields.CharField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
              'ci_types': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['cmdb.CIType']", 'symmetrical': 'False'}),
              'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
          },
          'cmdb.ciattributevalue': {
              'Meta': {'object_name': 'CIAttributeValue'},
              'attribute': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cmdb.CIAttribute']"}),
              'cache_version': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
              'ci': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cmdb.CI']"}),
              'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'value_choice': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cmdb.CIValueChoice']", 'null': 'True', 'blank': 'True'}),
              'value_date': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cmdb.CIValueDate']", 'null': 'True', 'blank': 'True'}),
              'value_float': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cmdb.CIValueFloat']", 'null': 'True', 'blank': 'True'}),
              'value_integer': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cmdb.CIValueInteger']", 'null': 'True', 'blank': 'True'}),
              'value_string': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cmdb.CIValueString']", 'null': 'True', 'blank': 'True'})
          },
          'cmdb.cichange': {
              'Meta': {'unique_together': "((u'content_type', u'object_id'),)", 'object_name': 'CIChange'},
              'cache_version': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
              'ci': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cmdb.CI']", 'null': 'True', 'blank': 'True'}),
              'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']", 'null': 'True'}),
              'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'external_key': ('django.db.models.fields.CharField', [], {'max_length': '60', 'blank': 'True'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'message': ('django.db.models.fields.CharField', [], {'max_length': '1024'}),
              'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
              'priority': ('django.db.models.fields.IntegerField', [], {'max_length': '11'}),
              'registration_type': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '11'}),
              'time': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'type': ('django.db.models.fields.IntegerField', [], {'max_length': '11', 'db_index': 'True'})
          },
          'cmdb.cichangecmdbhistory': {
              'Meta': {'object_name': 'CIChangeCMDBHistory'},
              'cache_version': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
              'ci': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cmdb.CI']"}),
              'comment': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
              'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'field_name': ('django.db.models.fields.CharField', [], {'default': "u''", 'max_length': '64'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'new_value': ('django.db.models.fields.CharField', [], {'default': "u''", 'max_length': '255'}),
              'old_value': ('django.db.models.fields.CharField', [], {'default': "u''", 'max_length': '255'}),
              'time': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'user': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['auth.User']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'})
          },
          'cmdb.cichangegit': {
              'Meta': {'object_name': 'CIChangeGit'},
              'author': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
              'cache_version': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
              'changeset': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80', 'db_index': 'True'}),
              'ci': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cmdb.CI']", 'null': 'True', 'blank': 'True'}),
              'comment': ('django.db.models.fields.CharField', [], {'max_length': '1000'}),
              'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'file_paths': ('django.db.models.fields.CharField', [], {'max_length': '3000'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'time': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
          },
          'cmdb.cichangepuppet': {
              'Meta': {'object_name': 'CIChangePuppet'},
              'cache_version': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
              'ci': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cmdb.CI']", 'null': 'True', 'blank': 'True'}),
              'configuration_version': ('django.db.models.fields.CharField', [], {'max_length': '30', 'db_index': 'True'}),
              'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'host': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'kind': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
              'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'status': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
              'time': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'})
          },
          'cmdb.cichangezabbixtrigger': {
              'Meta': {'object_name': 'CIChangeZabbixTrigger'},
              'cache_version': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
              'ci': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cmdb.CI']", 'null': 'True', 'blank': 'True'}),
              'comments': ('django.db.models.fields.CharField', [], {'max_length': '1024'}),
              'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'description': ('django.db.models.fields.CharField', [], {'max_length': '1024'}),
              'host': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
              'host_id': ('django.db.models.fields.BigIntegerField', [], {}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'lastchange': ('django.db.models.fields.CharField', [], {'max_length': '1024'}),
              'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'priority': ('django.db.models.fields.IntegerField', [], {}),
              'status': ('django.db.models.fields.IntegerField', [], {}),
              'trigger_id': ('django.db.models.fields.BigIntegerField', [], {})
          },
          'cmdb.cicontenttypeprefix': {
              'Meta': {'object_name': 'CIContentTypePrefix'},
              'cache_version': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
              'content_type_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'primary_key': 'True'}),
              'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'prefix': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
          },
          'cmdb.ciincident': {
              'Meta': {'object_name': 'CIIncident'},
              'analysis': ('django.db.models.fields.CharField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
              'assignee': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
              'cache_version': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
              'cis': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "u'ciincident'", 'symmetrical': 'False', 'to': "orm['cmdb.CI']"}),
              'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'created_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
              'description': ('django.db.models.fields.CharField', [], {'max_length': '1024'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'issue_type': ('django.db.models.fields.CharField', [], {'max_length': '254', 'null': 'True', 'blank': 'True'}),
              'jira_id': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
              'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'planned_end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
              'planned_start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
              'priority': ('django.db.models.fields.CharField', [], {'max_length': '254', 'null': 'True', 'blank': 'True'}),
              'problems': ('django.db.models.fields.CharField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
              'resolvet_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
              'status': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
              'summary': ('django.db.models.fields.CharField', [], {'max_length': '1024'}),
              'update_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
          },
          'cmdb.cilayer': {
              'Meta': {'ordering': "(u'name',)", 'object_name': 'CILayer'},
              'cache_version': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
              'connected_types': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['cmdb.CIType']", 'symmetrical': 'False', 'blank': 'True'}),
              'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'icon': (u'dj.choices.fields.ChoiceField', [], {'unique': 'False', 'primary_key': 'False', 'db_column': 'None', 'blank': 'True', u'default': 'None', 'null': 'True', '_in_south': 'True', 'db_index': 'False'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '50', 'db_index': 'True'})
          },
          'cmdb.ciowner': {
              'Meta': {'object_name': 'CIOwner'},
              'cache_version': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
              'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'unique': 'True', 'null': 'True'}),
              'first_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
              'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'sAMAccountName': ('django.db.models.fields.CharField', [], {'max_length': '256', 'blank': 'True'})
          },
          'cmdb.ciownership': {
              'Meta': {'object_name': 'CIOwnership'},
              'cache_version': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
              'ci': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cmdb.CI']"}),
              'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'owner': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cmdb.CIOwner']"}),
              'type': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'})
          },
          'cmdb.ciproblem': {
              'Meta': {'object_name': 'CIProblem'},
              'analysis': ('django.db.models.fields.CharField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
              'assignee': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
              'cache_version': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
              'cis': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "u'ciproblem'", 'symmetrical': 'False', 'to': "orm['cmdb.CI']"}),
              'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'created_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
              'description': ('django.db.models.fields.CharField', [], {'max_length': '1024'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'issue_type': ('django.db.models.fields.CharField', [], {'max_length': '254', 'null': 'True', 'blank': 'True'}),
              'jira_id': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
              'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'planned_end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
              'planned_start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
              'priority': ('django.db.models.fields.CharField', [], {'max_length': '254', 'null': 'True', 'blank': 'True'}),
              'problems': ('django.db.models.fields.CharField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
              'resolvet_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
              'status': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
              'summary': ('django.db.models.fields.CharField', [], {'max_length': '1024'}),
              'update_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
          },
          'cmdb.cirelation': {
              'Meta': {'unique_together': "((u'parent', u'child', u'type'),)", 'object_name': 'CIRelation'},
              'cache_version': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
              'child': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "u'child'", 'to': "orm['cmdb.CI']"}),
              'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "u'parent'", 'to': "orm['cmdb.CI']"}),
              'readonly': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
              'type': ('django.db.models.fields.IntegerField', [], {'max_length': '11'})
          },
          'cmdb.citype': {
              'Meta': {'object_name': 'CIType'},
              'cache_version': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
              'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'icon_class': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'name': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
          },
          'cmdb.civaluechoice': {
              'Meta': {'object_name': 'CIValueChoice'},
              'cache_version': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
              'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'value': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'})
          },
          'cmdb.civaluedate': {
              'Meta': {'object_name': 'CIValueDate'},
              'cache_version': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
              'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'value': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'})
          },
          'cmdb.civaluefloat': {
              'Meta': {'object_name': 'CIValueFloat'},
              'cache_version': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
              'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'value': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'})
          },
          'cmdb.civalueinteger': {
              'Meta': {'object_name': 'CIValueInteger'},
              'cache_version': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
              'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'value': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'})
          },
          'cmdb.civaluestring': {
              'Meta': {'object_name': 'CIValueString'},
              'cache_version': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
              'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'value': ('django.db.models.fields.CharField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'})
          },
          'cmdb.gitpathmapping': {
              'Meta': {'object_name': 'GitPathMapping'},
              'cache_version': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
              'ci': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cmdb.CI']"}),
              'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'is_regex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
              'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'path': ('django.db.models.fields.CharField', [], {'max_length': '1024'})
          },
          'cmdb.jirachanges': {
              'Meta': {'object_name': 'JiraChanges'},
              'analysis': ('django.db.models.fields.CharField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
              'assignee': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
              'cache_version': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
              'cis': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "u'jirachanges'", 'symmetrical': 'False', 'to': "orm['cmdb.CI']"}),
              'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'created_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
              'description': ('django.db.models.fields.CharField', [], {'max_length': '1024'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'issue_type': ('django.db.models.fields.CharField', [], {'max_length': '254', 'null': 'True', 'blank': 'True'}),
              'jira_id': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
              'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'planned_end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
              'planned_start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
              'priority': ('django.db.models.fields.CharField', [], {'max_length': '254', 'null': 'True', 'blank': 'True'}),
              'problems': ('django.db.models.fields.CharField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
              'resolvet_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
              'status': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
              'summary': ('django.db.models.fields.CharField', [], {'max_length': '1024'}),
              'update_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
          },
          'cmdb.puppetlog': {
              'Meta': {'object_name': 'PuppetLog'},
              'cache_version': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
              'cichange': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cmdb.CIChangePuppet']"}),
              'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'level': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
              'message': ('django.db.models.fields.CharField', [], {'max_length': '1024'}),
              'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'source': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
              'tags': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
              'time': ('django.db.models.fields.DateTimeField', [], {})
          },
          'contenttypes.contenttype': {
              'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
              'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
          }
      }
  
      complete_apps = ['cmdb']
  