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 'Suggestion'
12 db.create_table('suggest_suggestion', (
13 ('description', self.gf('django.db.models.fields.TextField')(blank=True)),
14 ('title', self.gf('django.db.models.fields.CharField')(max_length=120)),
15 ('ip', self.gf('django.db.models.fields.IPAddressField')(max_length=15)),
16 ('created_at', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
17 ('author', self.gf('django.db.models.fields.CharField')(max_length=120, blank=True)),
18 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
19 ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'], null=True, blank=True)),
20 ('email', self.gf('django.db.models.fields.EmailField')(max_length=75, blank=True)),
22 db.send_create_signal('suggest', ['Suggestion'])
25 def backwards(self, orm):
27 # Deleting model 'Suggestion'
28 db.delete_table('suggest_suggestion')
33 'Meta': {'object_name': 'Group'},
34 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
35 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
36 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})
39 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
40 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
41 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
42 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
43 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
46 'Meta': {'object_name': 'User'},
47 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
48 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
49 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
50 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}),
51 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
52 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
53 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
54 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
55 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
56 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
57 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
58 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}),
59 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
61 'contenttypes.contenttype': {
62 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
63 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
64 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
65 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
66 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
68 'suggest.suggestion': {
69 'Meta': {'object_name': 'Suggestion'},
70 'author': ('django.db.models.fields.CharField', [], {'max_length': '120', 'blank': 'True'}),
71 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
72 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
73 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
74 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
75 'ip': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
76 'title': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
77 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'})
81 complete_apps = ['suggest']