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 'PublishingSuggestion'
12 db.create_table('suggest_publishingsuggestion', (
13 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('contact', self.gf('django.db.models.fields.CharField')(max_length=120, blank=True)),
15 ('books', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
16 ('audiobooks', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
17 ('created_at', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
18 ('ip', self.gf('django.db.models.fields.IPAddressField')(max_length=15)),
19 ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'], null=True, blank=True)),
21 db.send_create_signal('suggest', ['PublishingSuggestion'])
24 def backwards(self, orm):
26 # Deleting model 'PublishingSuggestion'
27 db.delete_table('suggest_publishingsuggestion')
32 'Meta': {'object_name': 'Group'},
33 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
34 'name': ('django.db.models.fields.CharField', [], {'max_length': '80', 'unique': 'True'}),
35 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
38 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
39 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
40 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
41 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
42 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
45 'Meta': {'object_name': 'User'},
46 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
47 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
48 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
49 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
50 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
51 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
52 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
53 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
54 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
55 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
56 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
57 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
58 'username': ('django.db.models.fields.CharField', [], {'max_length': '30', 'unique': 'True'})
60 'contenttypes.contenttype': {
61 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
62 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
63 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
64 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
65 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
67 'suggest.publishingsuggestion': {
68 'Meta': {'ordering': "('-created_at',)", 'object_name': 'PublishingSuggestion'},
69 'audiobooks': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
70 'books': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
71 'contact': ('django.db.models.fields.CharField', [], {'max_length': '120', 'blank': 'True'}),
72 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
73 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
74 'ip': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
75 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'})
77 'suggest.suggestion': {
78 'Meta': {'ordering': "('-created_at',)", 'object_name': 'Suggestion'},
79 'contact': ('django.db.models.fields.CharField', [], {'max_length': '120', 'blank': 'True'}),
80 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
81 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
82 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
83 'ip': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
84 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'})
88 complete_apps = ['suggest']