diff options
author | Madhusudan.C.S | 2009-10-30 15:09:12 +0530 |
---|---|---|
committer | Madhusudan.C.S | 2009-10-30 15:09:12 +0530 |
commit | f89410559c20dd88d78ccd6b9d24e7941da9d5ff (patch) | |
tree | 3ad4fb64efc7523d1f3065e0dd03693871d6ce55 /project/kiwipycon/user/migrations/0001_initial.py | |
parent | 75f0773685ef0724d8ccc1eb1aab16bba55cd7a7 (diff) | |
download | scipycon-f89410559c20dd88d78ccd6b9d24e7941da9d5ff.tar.gz scipycon-f89410559c20dd88d78ccd6b9d24e7941da9d5ff.tar.bz2 scipycon-f89410559c20dd88d78ccd6b9d24e7941da9d5ff.zip |
Added all the files from kiwipycon and the changes made for SciPy.in.
Diffstat (limited to 'project/kiwipycon/user/migrations/0001_initial.py')
-rw-r--r-- | project/kiwipycon/user/migrations/0001_initial.py | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/project/kiwipycon/user/migrations/0001_initial.py b/project/kiwipycon/user/migrations/0001_initial.py new file mode 100644 index 0000000..8cb8788 --- /dev/null +++ b/project/kiwipycon/user/migrations/0001_initial.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- + +from south.db import db +from django.db import models +from project.kiwipycon.user.models import * + +class Migration: + + def forwards(self, orm): + + # Adding model 'UserProfile' + db.create_table('user_userprofile', ( + ('id', models.AutoField(primary_key=True)), + ('user', models.ForeignKey(orm['auth.User'], unique=True)), + ('url', models.URLField(verify_exists=False, blank=True)), + ('photo', models.CharField(max_length=64, blank=True)), + ('about', models.TextField(blank=True)), + )) + db.send_create_signal('user', ['UserProfile']) + + + + def backwards(self, orm): + + # Deleting model 'UserProfile' + db.delete_table('user_userprofile') + + + + models = { + 'auth.user': { + '_stub': True, + 'id': ('models.AutoField', [], {'primary_key': 'True'}) + }, + 'user.userprofile': { + 'about': ('models.TextField', [], {'blank': 'True'}), + 'id': ('models.AutoField', [], {'primary_key': 'True'}), + 'photo': ('models.CharField', [], {'max_length': '64', 'blank': 'True'}), + 'url': ('models.URLField', [], {'verify_exists': 'False', 'blank': 'True'}), + 'user': ('models.ForeignKey', ['User'], {'unique': 'True'}) + } + } + + complete_apps = ['user'] |