summaryrefslogtreecommitdiff
path: root/meetingtools/apps/cluster
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2012-11-01 17:16:45 +0100
committerLeif Johansson <leifj@sunet.se>2012-11-01 17:16:45 +0100
commita9656c33fd36721ff7945d4db67aa304bc436286 (patch)
treeb73813826fce6cb0f9a89068d92568a783e66e13 /meetingtools/apps/cluster
parent034011c5eb0eaadd88b743d36aef8566819fbc27 (diff)
make it possible to disable cross-domain sso per cluster
Diffstat (limited to 'meetingtools/apps/cluster')
-rw-r--r--meetingtools/apps/cluster/migrations/0002_auto__add_field_accluster_cross_domain_sso.py37
-rw-r--r--meetingtools/apps/cluster/models.py1
2 files changed, 38 insertions, 0 deletions
diff --git a/meetingtools/apps/cluster/migrations/0002_auto__add_field_accluster_cross_domain_sso.py b/meetingtools/apps/cluster/migrations/0002_auto__add_field_accluster_cross_domain_sso.py
new file mode 100644
index 0000000..96c2431
--- /dev/null
+++ b/meetingtools/apps/cluster/migrations/0002_auto__add_field_accluster_cross_domain_sso.py
@@ -0,0 +1,37 @@
+# -*- coding: 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 field 'ACCluster.cross_domain_sso'
+ db.add_column('cluster_accluster', 'cross_domain_sso',
+ self.gf('django.db.models.fields.BooleanField')(default=True),
+ keep_default=False)
+
+
+ def backwards(self, orm):
+ # Deleting field 'ACCluster.cross_domain_sso'
+ db.delete_column('cluster_accluster', 'cross_domain_sso')
+
+
+ models = {
+ 'cluster.accluster': {
+ 'Meta': {'object_name': 'ACCluster'},
+ 'api_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
+ 'cross_domain_sso': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
+ 'default_template_sco_id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'blank': 'True'}),
+ 'domain_match': ('django.db.models.fields.TextField', [], {}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128', 'blank': 'True'}),
+ 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
+ 'url': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
+ 'user': ('django.db.models.fields.CharField', [], {'max_length': '128'})
+ }
+ }
+
+ complete_apps = ['cluster'] \ No newline at end of file
diff --git a/meetingtools/apps/cluster/models.py b/meetingtools/apps/cluster/models.py
index 28c7f04..3c3304e 100644
--- a/meetingtools/apps/cluster/models.py
+++ b/meetingtools/apps/cluster/models.py
@@ -16,6 +16,7 @@ class ACCluster(models.Model):
name = CharField(max_length=128,blank=True,unique=True)
default_template_sco_id = IntegerField(blank=True,unique=True)
domain_match = TextField()
+ cross_domain_sso = BooleanField(default=True)
def __unicode__(self):
return self.url