3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
9 def forwards(self, orm):
11 # Adding model 'OAuthConnection'
12 db.create_table('apiclient_oauthconnection', (
13 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('user', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['auth.User'], unique=True)),
15 ('access', self.gf('django.db.models.fields.BooleanField')(default=False)),
16 ('token', self.gf('django.db.models.fields.CharField')(max_length=64, null=True, blank=True)),
17 ('token_secret', self.gf('django.db.models.fields.CharField')(max_length=64, null=True, blank=True)),
19 db.send_create_signal('apiclient', ['OAuthConnection'])
22 def backwards(self, orm):
24 # Deleting model 'OAuthConnection'
25 db.delete_table('apiclient_oauthconnection')
29 'apiclient.oauthconnection': {
30 'Meta': {'object_name': 'OAuthConnection'},
31 'access': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
32 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
33 'token': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
34 'token_secret': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
35 'user': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True'})
38 'Meta': {'object_name': 'Group'},
39 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
40 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
41 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
44 'Meta': {'ordering': "('content_type__app_label', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
45 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
46 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
47 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
48 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
51 'Meta': {'object_name': 'User'},
52 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
53 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
54 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
55 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
56 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
57 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
58 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
59 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
60 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
61 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
62 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
63 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
64 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
66 'contenttypes.contenttype': {
67 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
68 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
69 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
70 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
71 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
75 complete_apps = ['apiclient']