Commits

Erik Allik committed 6273c93

Use South for database migrations

This commit adds 0.2-compatible migrations.

Comments (0)

Files changed (9)

pyserver/manpremo/migrations/0001_initial.py

+# 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 'OrganizationalUnit'
+        db.create_table('manpremo_organizationalunit', (
+            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+            ('name', self.gf('django.db.models.fields.CharField')(max_length=60)),
+            ('description', self.gf('django.db.models.fields.TextField')(blank=True)),
+            ('parent', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='children', null=True, to=orm['manpremo.OrganizationalUnit'])),
+            ('creationInfo', self.gf('django.db.models.fields.related.ForeignKey')(related_name='ou_created', null=True, to=orm['manpremo.ActionLogEntry'])),
+            ('lastUpdatedInfo', self.gf('django.db.models.fields.related.ForeignKey')(related_name='ou_updated', null=True, to=orm['manpremo.ActionLogEntry'])),
+        ))
+        db.send_create_signal('manpremo', ['OrganizationalUnit'])
+
+        # Adding model 'ActionLogEntry'
+        db.create_table('manpremo_actionlogentry', (
+            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+            ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])),
+            ('content_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contenttypes.ContentType'])),
+            ('object_id', self.gf('django.db.models.fields.PositiveIntegerField')()),
+            ('orgUnit', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['manpremo.OrganizationalUnit'], null=True, blank=True)),
+            ('actionType', self.gf('django.db.models.fields.PositiveSmallIntegerField')()),
+            ('timestamp', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.utcnow)),
+            ('userIp', self.gf('django.db.models.fields.IPAddressField')(max_length=15)),
+        ))
+        db.send_create_signal('manpremo', ['ActionLogEntry'])
+
+        # Adding model 'UserProfile'
+        db.create_table('manpremo_userprofile', (
+            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+            ('user', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['auth.User'], unique=True)),
+            ('language', self.gf('django.db.models.fields.CharField')(max_length=30, null=True, blank=True)),
+            ('defaultOrgUnit', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['manpremo.OrganizationalUnit'], null=True, blank=True)),
+            ('dashboardPortletOrder', self.gf('django.db.models.fields.TextField')(blank=True)),
+            ('timezone', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True)),
+            ('creationInfo', self.gf('django.db.models.fields.related.ForeignKey')(related_name='user_created', null=True, to=orm['manpremo.ActionLogEntry'])),
+        ))
+        db.send_create_signal('manpremo', ['UserProfile'])
+
+        # Adding model 'RegistrationKey'
+        db.create_table('manpremo_registrationkey', (
+            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+            ('owner', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['manpremo.OrganizationalUnit'])),
+            ('uuid', self.gf('django.db.models.fields.CharField')(default='e45cdde573ad4713b10aff9d9fc3ccc5', max_length=32)),
+            ('name', self.gf('django.db.models.fields.CharField')(max_length=60)),
+            ('description', self.gf('django.db.models.fields.TextField')(blank=True)),
+            ('openSince', self.gf('django.db.models.fields.DateTimeField')()),
+            ('openUntil', self.gf('django.db.models.fields.DateTimeField')()),
+            ('maximumClientsCount', self.gf('django.db.models.fields.IntegerField')()),
+            ('registeredClientsCount', self.gf('django.db.models.fields.IntegerField')(default=0)),
+            ('creationInfo', self.gf('django.db.models.fields.related.ForeignKey')(related_name='regkey_created', null=True, to=orm['manpremo.ActionLogEntry'])),
+            ('lastUpdatedInfo', self.gf('django.db.models.fields.related.ForeignKey')(related_name='regkey_updated', null=True, to=orm['manpremo.ActionLogEntry'])),
+            ('active', self.gf('django.db.models.fields.BooleanField')(default=True)),
+        ))
+        db.send_create_signal('manpremo', ['RegistrationKey'])
+
+        # Adding model 'Client'
+        db.create_table('manpremo_client', (
+            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+            ('owner', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['manpremo.OrganizationalUnit'])),
+            ('name', self.gf('django.db.models.fields.CharField')(max_length=60)),
+            ('description', self.gf('django.db.models.fields.TextField')(blank=True)),
+            ('registrationKey', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['manpremo.RegistrationKey'])),
+            ('creationInfo', self.gf('django.db.models.fields.related.ForeignKey')(related_name='client_created', null=True, to=orm['manpremo.ActionLogEntry'])),
+            ('lastUpdatedInfo', self.gf('django.db.models.fields.related.ForeignKey')(related_name='client_updated', null=True, to=orm['manpremo.ActionLogEntry'])),
+            ('active', self.gf('django.db.models.fields.BooleanField')(default=True)),
+            ('uuid', self.gf('django.db.models.fields.CharField')(default='fd09a364e96b4db081cf303833282c31', max_length=32)),
+            ('sharedKey', self.gf('django.db.models.fields.CharField')(max_length=32)),
+            ('inventoryItemId', self.gf('django.db.models.fields.CharField')(max_length=60, blank=True)),
+            ('datalistFetchTime', self.gf('django.db.models.fields.DateTimeField')(null=True)),
+        ))
+        db.send_create_signal('manpremo', ['Client'])
+
+        # Adding model 'ClientGroup'
+        db.create_table('manpremo_clientgroup', (
+            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+            ('name', self.gf('django.db.models.fields.CharField')(max_length=60)),
+            ('description', self.gf('django.db.models.fields.TextField')(blank=True)),
+        ))
+        db.send_create_signal('manpremo', ['ClientGroup'])
+
+        # Adding model 'TaskTemplate'
+        db.create_table('manpremo_tasktemplate', (
+            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+            ('owner', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['manpremo.OrganizationalUnit'], null=True, blank=True)),
+            ('name', self.gf('django.db.models.fields.CharField')(max_length=60)),
+            ('description', self.gf('django.db.models.fields.TextField')(blank=True)),
+            ('taskType', self.gf('django.db.models.fields.CharField')(max_length=16)),
+            ('nextVersion', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='previous', null=True, to=orm['manpremo.TaskTemplate'])),
+            ('creationInfo', self.gf('django.db.models.fields.related.ForeignKey')(related_name='tasktemplate_created', null=True, to=orm['manpremo.ActionLogEntry'])),
+        ))
+        db.send_create_signal('manpremo', ['TaskTemplate'])
+
+        # Adding model 'TaskTemplateCategory'
+        db.create_table('manpremo_tasktemplatecategory', (
+            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+            ('name', self.gf('django.db.models.fields.CharField')(max_length=60)),
+            ('description', self.gf('django.db.models.fields.TextField')(blank=True)),
+            ('author', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])),
+        ))
+        db.send_create_signal('manpremo', ['TaskTemplateCategory'])
+
+        # Adding model 'TaskGroup'
+        db.create_table('manpremo_taskgroup', (
+            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+            ('owner', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['manpremo.OrganizationalUnit'])),
+            ('name', self.gf('django.db.models.fields.CharField')(max_length=60)),
+            ('description', self.gf('django.db.models.fields.TextField')(blank=True)),
+            ('generated', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.utcnow)),
+            ('creationInfo', self.gf('django.db.models.fields.related.ForeignKey')(related_name='taskgroup_created', null=True, to=orm['manpremo.ActionLogEntry'])),
+            ('abortInfo', self.gf('django.db.models.fields.related.ForeignKey')(related_name='taskgroup_aborted', null=True, to=orm['manpremo.ActionLogEntry'])),
+            ('deleteInfo', self.gf('django.db.models.fields.related.ForeignKey')(related_name='taskgroup_deleted', null=True, to=orm['manpremo.ActionLogEntry'])),
+            ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
+            ('updated', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.utcnow)),
+        ))
+        db.send_create_signal('manpremo', ['TaskGroup'])
+
+        # Adding model 'TaskInstance'
+        db.create_table('manpremo_taskinstance', (
+            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+            ('uuid', self.gf('django.db.models.fields.CharField')(default='3a8cb8e7fe204422a6d80b128585b1a6', max_length=32)),
+            ('client', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['manpremo.Client'])),
+            ('group', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['manpremo.TaskGroup'])),
+            ('template', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['manpremo.TaskTemplate'])),
+            ('state', self.gf('django.db.models.fields.PositiveSmallIntegerField')(default=1)),
+            ('startTime', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
+            ('updated', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.utcnow)),
+        ))
+        db.send_create_signal('manpremo', ['TaskInstance'])
+
+
+    def backwards(self, orm):
+        
+        # Deleting model 'OrganizationalUnit'
+        db.delete_table('manpremo_organizationalunit')
+
+        # Deleting model 'ActionLogEntry'
+        db.delete_table('manpremo_actionlogentry')
+
+        # Deleting model 'UserProfile'
+        db.delete_table('manpremo_userprofile')
+
+        # Deleting model 'RegistrationKey'
+        db.delete_table('manpremo_registrationkey')
+
+        # Deleting model 'Client'
+        db.delete_table('manpremo_client')
+
+        # Deleting model 'ClientGroup'
+        db.delete_table('manpremo_clientgroup')
+
+        # Deleting model 'TaskTemplate'
+        db.delete_table('manpremo_tasktemplate')
+
+        # Deleting model 'TaskTemplateCategory'
+        db.delete_table('manpremo_tasktemplatecategory')
+
+        # Deleting model 'TaskGroup'
+        db.delete_table('manpremo_taskgroup')
+
+        # Deleting model 'TaskInstance'
+        db.delete_table('manpremo_taskinstance')
+
+
+    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'})
+        },
+        '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'})
+        },
+        'manpremo.actionlogentry': {
+            'Meta': {'ordering': "['-timestamp']", 'object_name': 'ActionLogEntry'},
+            'actionType': ('django.db.models.fields.PositiveSmallIntegerField', [], {}),
+            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
+            'orgUnit': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['manpremo.OrganizationalUnit']", 'null': 'True', 'blank': 'True'}),
+            'timestamp': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.utcnow'}),
+            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),
+            'userIp': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'})
+        },
+        'manpremo.client': {
+            'Meta': {'object_name': 'Client'},
+            'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
+            'creationInfo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'client_created'", 'null': 'True', 'to': "orm['manpremo.ActionLogEntry']"}),
+            'datalistFetchTime': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
+            'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'inventoryItemId': ('django.db.models.fields.CharField', [], {'max_length': '60', 'blank': 'True'}),
+            'lastUpdatedInfo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'client_updated'", 'null': 'True', 'to': "orm['manpremo.ActionLogEntry']"}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '60'}),
+            'owner': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['manpremo.OrganizationalUnit']"}),
+            'registrationKey': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['manpremo.RegistrationKey']"}),
+            'sharedKey': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
+            'uuid': ('django.db.models.fields.CharField', [], {'default': "'16a8dc4911f64e619175c994fdf3c32d'", 'max_length': '32'})
+        },
+        'manpremo.clientgroup': {
+            'Meta': {'object_name': 'ClientGroup'},
+            'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '60'})
+        },
+        'manpremo.organizationalunit': {
+            'Meta': {'object_name': 'OrganizationalUnit'},
+            'creationInfo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'ou_created'", 'null': 'True', 'to': "orm['manpremo.ActionLogEntry']"}),
+            'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'lastUpdatedInfo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'ou_updated'", 'null': 'True', 'to': "orm['manpremo.ActionLogEntry']"}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '60'}),
+            'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['manpremo.OrganizationalUnit']"})
+        },
+        'manpremo.registrationkey': {
+            'Meta': {'object_name': 'RegistrationKey'},
+            'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
+            'creationInfo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'regkey_created'", 'null': 'True', 'to': "orm['manpremo.ActionLogEntry']"}),
+            'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'lastUpdatedInfo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'regkey_updated'", 'null': 'True', 'to': "orm['manpremo.ActionLogEntry']"}),
+            'maximumClientsCount': ('django.db.models.fields.IntegerField', [], {}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '60'}),
+            'openSince': ('django.db.models.fields.DateTimeField', [], {}),
+            'openUntil': ('django.db.models.fields.DateTimeField', [], {}),
+            'owner': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['manpremo.OrganizationalUnit']"}),
+            'registeredClientsCount': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
+            'uuid': ('django.db.models.fields.CharField', [], {'default': "'858afedd8d89484086fb1f70da832947'", 'max_length': '32'})
+        },
+        'manpremo.taskgroup': {
+            'Meta': {'object_name': 'TaskGroup'},
+            'abortInfo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'taskgroup_aborted'", 'null': 'True', 'to': "orm['manpremo.ActionLogEntry']"}),
+            'creationInfo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'taskgroup_created'", 'null': 'True', 'to': "orm['manpremo.ActionLogEntry']"}),
+            'deleteInfo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'taskgroup_deleted'", 'null': 'True', 'to': "orm['manpremo.ActionLogEntry']"}),
+            'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+            'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
+            'generated': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.utcnow'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '60'}),
+            'owner': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['manpremo.OrganizationalUnit']"}),
+            'updated': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.utcnow'})
+        },
+        'manpremo.taskinstance': {
+            'Meta': {'object_name': 'TaskInstance'},
+            'client': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['manpremo.Client']"}),
+            'group': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['manpremo.TaskGroup']"}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'startTime': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
+            'state': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '1'}),
+            'template': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['manpremo.TaskTemplate']"}),
+            'updated': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.utcnow'}),
+            'uuid': ('django.db.models.fields.CharField', [], {'default': "'a77648f03ed5445f859218c539df9051'", 'max_length': '32'})
+        },
+        'manpremo.tasktemplate': {
+            'Meta': {'object_name': 'TaskTemplate'},
+            'creationInfo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tasktemplate_created'", 'null': 'True', 'to': "orm['manpremo.ActionLogEntry']"}),
+            'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '60'}),
+            'nextVersion': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'previous'", 'null': 'True', 'to': "orm['manpremo.TaskTemplate']"}),
+            'owner': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['manpremo.OrganizationalUnit']", 'null': 'True', 'blank': 'True'}),
+            'taskType': ('django.db.models.fields.CharField', [], {'max_length': '16'})
+        },
+        'manpremo.tasktemplatecategory': {
+            'Meta': {'object_name': 'TaskTemplateCategory'},
+            'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),
+            'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '60'})
+        },
+        'manpremo.userprofile': {
+            'Meta': {'object_name': 'UserProfile'},
+            'creationInfo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_created'", 'null': 'True', 'to': "orm['manpremo.ActionLogEntry']"}),
+            'dashboardPortletOrder': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
+            'defaultOrgUnit': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['manpremo.OrganizationalUnit']", 'null': 'True', 'blank': 'True'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'language': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
+            'timezone': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
+            'user': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True'})
+        }
+    }
+
+    complete_apps = ['manpremo']

pyserver/manpremo/migrations/__init__.py

Empty file added.

pyserver/mpf/migrations/0001_initial.py

+# 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 'PermissionType'
+        db.create_table('mpf_permissiontype', (
+            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+            ('codename', self.gf('django.db.models.fields.CharField')(unique=True, max_length=100)),
+            ('content_type', self.gf('django.db.models.fields.related.ForeignKey')(related_name='manpremo_permissions', to=orm['contenttypes.ContentType'])),
+        ))
+        db.send_create_signal('mpf', ['PermissionType'])
+
+        # Adding model 'Permission'
+        db.create_table('mpf_permission', (
+            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+            ('type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['mpf.PermissionType'])),
+            ('object_id', self.gf('django.db.models.fields.PositiveIntegerField')()),
+            ('grant', self.gf('django.db.models.fields.BooleanField')(default=True)),
+            ('auto', self.gf('django.db.models.fields.BooleanField')(default=False)),
+            ('parent', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='children', null=True, to=orm['mpf.Permission'])),
+            ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])),
+        ))
+        db.send_create_signal('mpf', ['Permission'])
+
+        # Adding model 'Role'
+        db.create_table('mpf_role', (
+            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+            ('codename', self.gf('django.db.models.fields.CharField')(unique=True, max_length=20)),
+        ))
+        db.send_create_signal('mpf', ['Role'])
+
+        # Adding M2M table for field permissions on 'Role'
+        db.create_table('mpf_role_permissions', (
+            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
+            ('role', models.ForeignKey(orm['mpf.role'], null=False)),
+            ('permissiontype', models.ForeignKey(orm['mpf.permissiontype'], null=False))
+        ))
+        db.create_unique('mpf_role_permissions', ['role_id', 'permissiontype_id'])
+
+        # Adding model 'RoleAssignment'
+        db.create_table('mpf_roleassignment', (
+            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+            ('role', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['mpf.Role'])),
+            ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])),
+            ('content_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contenttypes.ContentType'])),
+            ('object_id', self.gf('django.db.models.fields.PositiveIntegerField')()),
+        ))
+        db.send_create_signal('mpf', ['RoleAssignment'])
+
+        # Adding unique constraint on 'RoleAssignment', fields ['user', 'content_type', 'object_id']
+        db.create_unique('mpf_roleassignment', ['user_id', 'content_type_id', 'object_id'])
+
+
+    def backwards(self, orm):
+        
+        # Removing unique constraint on 'RoleAssignment', fields ['user', 'content_type', 'object_id']
+        db.delete_unique('mpf_roleassignment', ['user_id', 'content_type_id', 'object_id'])
+
+        # Deleting model 'PermissionType'
+        db.delete_table('mpf_permissiontype')
+
+        # Deleting model 'Permission'
+        db.delete_table('mpf_permission')
+
+        # Deleting model 'Role'
+        db.delete_table('mpf_role')
+
+        # Removing M2M table for field permissions on 'Role'
+        db.delete_table('mpf_role_permissions')
+
+        # Deleting model 'RoleAssignment'
+        db.delete_table('mpf_roleassignment')
+
+
+    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'})
+        },
+        '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'})
+        },
+        'mpf.permission': {
+            'Meta': {'object_name': 'Permission'},
+            'auto': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+            'grant': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
+            'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['mpf.Permission']"}),
+            'type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['mpf.PermissionType']"}),
+            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
+        },
+        'mpf.permissiontype': {
+            'Meta': {'object_name': 'PermissionType'},
+            'codename': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
+            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'manpremo_permissions'", 'to': "orm['contenttypes.ContentType']"}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
+        },
+        'mpf.role': {
+            'Meta': {'object_name': 'Role'},
+            'codename': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['mpf.PermissionType']", 'symmetrical': 'False'})
+        },
+        'mpf.roleassignment': {
+            'Meta': {'unique_together': "(('user', 'content_type', 'object_id'),)", 'object_name': 'RoleAssignment'},
+            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
+            'role': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['mpf.Role']"}),
+            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
+        }
+    }
+
+    complete_apps = ['mpf']

pyserver/mpf/migrations/__init__.py

Empty file added.

pyserver/settings.py

     'django.contrib.sessions',
     'django.contrib.sites',
     'django.contrib.admin',
-    'django_evolution',
     'django.contrib.messages',
+    'south',
 
     'manpremo',
     'mpf',

pyserver/tasks/command/migrations/0001_initial.py

+# 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 'CommandTaskTemplate'
+        db.create_table('command_commandtasktemplate', (
+            ('tasktemplate_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['manpremo.TaskTemplate'], unique=True, primary_key=True)),
+            ('command', self.gf('django.db.models.fields.TextField')()),
+        ))
+        db.send_create_signal('command', ['CommandTaskTemplate'])
+
+        # Adding model 'CommandTaskTemplateParameter'
+        db.create_table('command_commandtasktemplateparameter', (
+            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+            ('taskTemplate', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['command.CommandTaskTemplate'])),
+            ('name', self.gf('django.db.models.fields.CharField')(max_length=30)),
+            ('description', self.gf('django.db.models.fields.TextField')(blank=True)),
+            ('defaultValue', self.gf('django.db.models.fields.TextField')(blank=True)),
+            ('paramType', self.gf('django.db.models.fields.CharField')(max_length=1)),
+        ))
+        db.send_create_signal('command', ['CommandTaskTemplateParameter'])
+
+        # Adding model 'CommandTaskInstance'
+        db.create_table('command_commandtaskinstance', (
+            ('taskinstance_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['manpremo.TaskInstance'], unique=True, primary_key=True)),
+            ('retCode', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
+            ('runtime', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
+            ('stdout_filename', self.gf('django.db.models.fields.CharField')(max_length=200, null=True, blank=True)),
+            ('stderr_filename', self.gf('django.db.models.fields.CharField')(max_length=200, null=True, blank=True)),
+            ('metadata_filename', self.gf('django.db.models.fields.CharField')(max_length=200, null=True, blank=True)),
+        ))
+        db.send_create_signal('command', ['CommandTaskInstance'])
+
+        # Adding model 'CommandTaskInstanceParameter'
+        db.create_table('command_commandtaskinstanceparameter', (
+            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+            ('taskInstance', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['command.CommandTaskInstance'])),
+            ('template', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['command.CommandTaskTemplateParameter'])),
+            ('value', self.gf('django.db.models.fields.TextField')(blank=True)),
+        ))
+        db.send_create_signal('command', ['CommandTaskInstanceParameter'])
+
+
+    def backwards(self, orm):
+        
+        # Deleting model 'CommandTaskTemplate'
+        db.delete_table('command_commandtasktemplate')
+
+        # Deleting model 'CommandTaskTemplateParameter'
+        db.delete_table('command_commandtasktemplateparameter')
+
+        # Deleting model 'CommandTaskInstance'
+        db.delete_table('command_commandtaskinstance')
+
+        # Deleting model 'CommandTaskInstanceParameter'
+        db.delete_table('command_commandtaskinstanceparameter')
+
+
+    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'})
+        },
+        'command.commandtaskinstance': {
+            'Meta': {'object_name': 'CommandTaskInstance', '_ormbases': ['manpremo.TaskInstance']},
+            'metadata_filename': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
+            'retCode': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
+            'runtime': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
+            'stderr_filename': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
+            'stdout_filename': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
+            'taskinstance_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['manpremo.TaskInstance']", 'unique': 'True', 'primary_key': 'True'})
+        },
+        'command.commandtaskinstanceparameter': {
+            'Meta': {'object_name': 'CommandTaskInstanceParameter'},
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'taskInstance': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['command.CommandTaskInstance']"}),
+            'template': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['command.CommandTaskTemplateParameter']"}),
+            'value': ('django.db.models.fields.TextField', [], {'blank': 'True'})
+        },
+        'command.commandtasktemplate': {
+            'Meta': {'object_name': 'CommandTaskTemplate', '_ormbases': ['manpremo.TaskTemplate']},
+            'command': ('django.db.models.fields.TextField', [], {}),
+            'tasktemplate_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['manpremo.TaskTemplate']", 'unique': 'True', 'primary_key': 'True'})
+        },
+        'command.commandtasktemplateparameter': {
+            'Meta': {'object_name': 'CommandTaskTemplateParameter'},
+            'defaultValue': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
+            'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
+            'paramType': ('django.db.models.fields.CharField', [], {'max_length': '1'}),
+            'taskTemplate': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['command.CommandTaskTemplate']"})
+        },
+        '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'})
+        },
+        'manpremo.actionlogentry': {
+            'Meta': {'ordering': "['-timestamp']", 'object_name': 'ActionLogEntry'},
+            'actionType': ('django.db.models.fields.PositiveSmallIntegerField', [], {}),
+            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
+            'orgUnit': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['manpremo.OrganizationalUnit']", 'null': 'True', 'blank': 'True'}),
+            'timestamp': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.utcnow'}),
+            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),
+            'userIp': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'})
+        },
+        'manpremo.client': {
+            'Meta': {'object_name': 'Client'},
+            'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
+            'creationInfo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'client_created'", 'null': 'True', 'to': "orm['manpremo.ActionLogEntry']"}),
+            'datalistFetchTime': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
+            'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'inventoryItemId': ('django.db.models.fields.CharField', [], {'max_length': '60', 'blank': 'True'}),
+            'isManpremoMaintenance': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+            'lastUpdatedInfo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'client_updated'", 'null': 'True', 'to': "orm['manpremo.ActionLogEntry']"}),
+            'machineArchitecture': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True', 'blank': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '60'}),
+            'operatingSystem': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True', 'blank': 'True'}),
+            'owner': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['manpremo.OrganizationalUnit']"}),
+            'registrationKey': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['manpremo.RegistrationKey']"}),
+            'sharedKey': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
+            'uuid': ('django.db.models.fields.CharField', [], {'default': "'4b1685e0cd2e41ffad215223f19b543c'", 'max_length': '32'})
+        },
+        'manpremo.organizationalunit': {
+            'Meta': {'object_name': 'OrganizationalUnit'},
+            'creationInfo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'ou_created'", 'null': 'True', 'to': "orm['manpremo.ActionLogEntry']"}),
+            'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'lastUpdatedInfo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'ou_updated'", 'null': 'True', 'to': "orm['manpremo.ActionLogEntry']"}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '60'}),
+            'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['manpremo.OrganizationalUnit']"})
+        },
+        'manpremo.registrationkey': {
+            'Meta': {'object_name': 'RegistrationKey'},
+            'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
+            'creationInfo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'regkey_created'", 'null': 'True', 'to': "orm['manpremo.ActionLogEntry']"}),
+            'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'lastUpdatedInfo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'regkey_updated'", 'null': 'True', 'to': "orm['manpremo.ActionLogEntry']"}),
+            'maximumClientsCount': ('django.db.models.fields.IntegerField', [], {}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '60'}),
+            'openSince': ('django.db.models.fields.DateTimeField', [], {}),
+            'openUntil': ('django.db.models.fields.DateTimeField', [], {}),
+            'owner': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['manpremo.OrganizationalUnit']"}),
+            'registeredClientsCount': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
+            'uuid': ('django.db.models.fields.CharField', [], {'default': "'8f79dffc50bc4d3387e4a228b46ce2f8'", 'max_length': '32'})
+        },
+        'manpremo.taskgroup': {
+            'Meta': {'object_name': 'TaskGroup'},
+            'abortInfo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'taskgroup_aborted'", 'null': 'True', 'to': "orm['manpremo.ActionLogEntry']"}),
+            'creationInfo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'taskgroup_created'", 'null': 'True', 'to': "orm['manpremo.ActionLogEntry']"}),
+            'deleteInfo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'taskgroup_deleted'", 'null': 'True', 'to': "orm['manpremo.ActionLogEntry']"}),
+            'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+            'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
+            'generated': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.utcnow'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '60'}),
+            'owner': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['manpremo.OrganizationalUnit']"}),
+            'updated': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.utcnow'})
+        },
+        'manpremo.taskinstance': {
+            'Meta': {'object_name': 'TaskInstance'},
+            'client': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['manpremo.Client']"}),
+            'group': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['manpremo.TaskGroup']"}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'startTime': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
+            'state': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '1'}),
+            'template': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['manpremo.TaskTemplate']"}),
+            'updated': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.utcnow'}),
+            'uuid': ('django.db.models.fields.CharField', [], {'default': "'f172b77cf97c4536b79c850cdcef4eb3'", 'max_length': '32'})
+        },
+        'manpremo.tasktemplate': {
+            'Meta': {'object_name': 'TaskTemplate'},
+            'creationInfo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tasktemplate_created'", 'null': 'True', 'to': "orm['manpremo.ActionLogEntry']"}),
+            'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '60'}),
+            'nextVersion': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'previous'", 'null': 'True', 'to': "orm['manpremo.TaskTemplate']"}),
+            'owner': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['manpremo.OrganizationalUnit']", 'null': 'True', 'blank': 'True'}),
+            'taskType': ('django.db.models.fields.CharField', [], {'max_length': '16'})
+        }
+    }
+
+    complete_apps = ['command']

pyserver/tasks/command/migrations/__init__.py

Empty file added.

pyserver/tasks/powerCommands/migrations/0001_initial.py

+# 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 'PowerCommandTaskTemplate'
+        db.create_table('powerCommands_powercommandtasktemplate', (
+            ('tasktemplate_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['manpremo.TaskTemplate'], unique=True, primary_key=True)),
+            ('commandType', self.gf('django.db.models.fields.CharField')(max_length=16)),
+        ))
+        db.send_create_signal('powerCommands', ['PowerCommandTaskTemplate'])
+
+
+    def backwards(self, orm):
+        
+        # Deleting model 'PowerCommandTaskTemplate'
+        db.delete_table('powerCommands_powercommandtasktemplate')
+
+
+    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'})
+        },
+        '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'})
+        },
+        'manpremo.actionlogentry': {
+            'Meta': {'ordering': "['-timestamp']", 'object_name': 'ActionLogEntry'},
+            'actionType': ('django.db.models.fields.PositiveSmallIntegerField', [], {}),
+            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
+            'orgUnit': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['manpremo.OrganizationalUnit']", 'null': 'True', 'blank': 'True'}),
+            'timestamp': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.utcnow'}),
+            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),
+            'userIp': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'})
+        },
+        'manpremo.organizationalunit': {
+            'Meta': {'object_name': 'OrganizationalUnit'},
+            'creationInfo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'ou_created'", 'null': 'True', 'to': "orm['manpremo.ActionLogEntry']"}),
+            'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'lastUpdatedInfo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'ou_updated'", 'null': 'True', 'to': "orm['manpremo.ActionLogEntry']"}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '60'}),
+            'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['manpremo.OrganizationalUnit']"})
+        },
+        'manpremo.tasktemplate': {
+            'Meta': {'object_name': 'TaskTemplate'},
+            'creationInfo': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tasktemplate_created'", 'null': 'True', 'to': "orm['manpremo.ActionLogEntry']"}),
+            'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '60'}),
+            'nextVersion': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'previous'", 'null': 'True', 'to': "orm['manpremo.TaskTemplate']"}),
+            'owner': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['manpremo.OrganizationalUnit']", 'null': 'True', 'blank': 'True'}),
+            'taskType': ('django.db.models.fields.CharField', [], {'max_length': '16'})
+        },
+        'powerCommands.powercommandtasktemplate': {
+            'Meta': {'object_name': 'PowerCommandTaskTemplate', '_ormbases': ['manpremo.TaskTemplate']},
+            'commandType': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
+            'tasktemplate_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['manpremo.TaskTemplate']", 'unique': 'True', 'primary_key': 'True'})
+        }
+    }
+
+    complete_apps = ['powerCommands']

pyserver/tasks/powerCommands/migrations/__init__.py

Empty file added.