Permalink
Browse files

fixed migrations for 1.5

  • Loading branch information...
1 parent 5f0523f commit 2f4ac3b3b0c4540b221d821d229a50e54ce6d9b6 @ojii ojii committed Nov 29, 2012
Showing with 4 additions and 3 deletions.
  1. +1 −1 simple_sso/__init__.py
  2. +3 −2 simple_sso/sso_server/migrations/0001_initial.py
View
@@ -1 +1 @@
-__version__ = '0.9.1'
+__version__ = '0.9.2'
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
import datetime
+from django.conf import settings
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
@@ -25,7 +26,7 @@ def forwards(self, orm):
('access_token', self.gf('django.db.models.fields.CharField')(default='6iOTXc4LLS3fPIJl8wXmfsYPMm6wuwsvUQf7UTVnMX6TeFBpIM4apGOdKiHz8qUt', unique=True, max_length=64)),
('timestamp', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
('redirect_to', self.gf('django.db.models.fields.CharField')(max_length=255)),
- ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'], null=True)),
+ ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm[getattr(settings, 'AUTH_USER_MODEL', 'auth.User')], null=True)),
))
db.send_create_signal('sso_server', ['Token'])
@@ -94,4 +95,4 @@ def backwards(self, orm):
}
}
- complete_apps = ['sso_server']
+ complete_apps = ['sso_server']

0 comments on commit 2f4ac3b

Please sign in to comment.