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