3 from south.db import db
\r
4 from south.v2 import SchemaMigration
\r
5 from django.db import models
\r
7 class Migration(SchemaMigration):
\r
9 def forwards(self, orm):
\r
11 # Changing field 'Action.extra'
\r
12 db.alter_column('forum_action', 'extra', self.gf('forum.models.utils.PickledObjectField')(null=True))
\r
14 # Changing field 'KeyValue.value'
\r
15 db.alter_column('forum_keyvalue', 'value', self.gf('forum.models.utils.PickledObjectField')(null=True))
\r
18 def backwards(self, orm):
\r
20 # Changing field 'Action.extra'
\r
21 db.alter_column('forum_action', 'extra', self.gf('django.db.models.fields.CharField')(max_length=255))
\r
23 # Changing field 'KeyValue.value'
\r
24 db.alter_column('forum_keyvalue', 'value', self.gf('forum.models.utils.PickledObjectField')())
\r
29 'Meta': {'object_name': 'Group'},
\r
30 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
31 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
\r
32 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})
\r
34 'auth.permission': {
\r
35 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
\r
36 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
37 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
38 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
39 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
\r
42 'Meta': {'object_name': 'User'},
\r
43 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
44 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
\r
45 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
\r
46 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}),
\r
47 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
48 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
49 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
50 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
51 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
52 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
\r
53 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
\r
54 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}),
\r
55 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
\r
57 'contenttypes.contenttype': {
\r
58 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
\r
59 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
60 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
61 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
62 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
\r
65 'Meta': {'object_name': 'Action'},
\r
66 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
67 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
68 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
69 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
\r
70 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
71 'canceled_ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
72 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}),
\r
73 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
74 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
75 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
76 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"})
\r
78 'forum.actionrepute': {
\r
79 'Meta': {'object_name': 'ActionRepute'},
\r
80 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}),
\r
81 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
82 'date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
83 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
84 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}),
\r
85 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'})
\r
87 'forum.authkeyuserassociation': {
\r
88 'Meta': {'object_name': 'AuthKeyUserAssociation'},
\r
89 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
90 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
91 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
92 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
\r
93 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"})
\r
96 'Meta': {'object_name': 'Award', 'db_table': "u'award'"},
\r
97 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
98 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}),
\r
99 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
100 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
101 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
102 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
103 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"})
\r
106 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"},
\r
107 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
108 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}),
\r
109 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
110 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
111 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
112 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
\r
113 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}),
\r
114 'type': ('django.db.models.fields.SmallIntegerField', [], {})
\r
116 'forum.keyvalue': {
\r
117 'Meta': {'object_name': 'KeyValue'},
\r
118 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
119 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
120 'value': ('forum.models.utils.PickledObjectField', [], {'null': 'True'})
\r
122 'forum.markedtag': {
\r
123 'Meta': {'object_name': 'MarkedTag'},
\r
124 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
125 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
126 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}),
\r
127 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"})
\r
130 'Meta': {'object_name': 'Node'},
\r
131 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
132 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}),
\r
133 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
134 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}),
\r
135 'body': ('django.db.models.fields.TextField', [], {}),
\r
136 'deleted': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'deleted_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}),
\r
137 'extra_action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'extra_node'", 'null': 'True', 'to': "orm['forum.Action']"}),
\r
138 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
139 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}),
\r
140 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
141 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
142 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
\r
143 'last_edited': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'edited_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}),
\r
144 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
145 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}),
\r
146 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
147 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
148 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
149 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}),
\r
150 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
151 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})
\r
153 'forum.noderevision': {
\r
154 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'},
\r
155 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}),
\r
156 'body': ('django.db.models.fields.TextField', [], {}),
\r
157 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
158 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}),
\r
159 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
160 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
161 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
162 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
163 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'})
\r
165 'forum.openidassociation': {
\r
166 'Meta': {'object_name': 'OpenIdAssociation'},
\r
167 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}),
\r
168 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
\r
169 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
170 'issued': ('django.db.models.fields.IntegerField', [], {}),
\r
171 'lifetime': ('django.db.models.fields.IntegerField', [], {}),
\r
172 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}),
\r
173 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'})
\r
175 'forum.openidnonce': {
\r
176 'Meta': {'object_name': 'OpenIdNonce'},
\r
177 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
178 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
\r
179 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
\r
180 'timestamp': ('django.db.models.fields.IntegerField', [], {})
\r
182 'forum.questionsubscription': {
\r
183 'Meta': {'object_name': 'QuestionSubscription'},
\r
184 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
185 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
186 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 30, 23, 58, 8, 677000)'}),
\r
187 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}),
\r
188 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
190 'forum.subscriptionsettings': {
\r
191 'Meta': {'object_name': 'SubscriptionSettings'},
\r
192 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
193 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
194 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
195 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
196 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}),
\r
197 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}),
\r
198 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
\r
199 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
200 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
201 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
202 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
203 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
204 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
205 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
206 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
207 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
208 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
\r
209 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"})
\r
212 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"},
\r
213 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}),
\r
214 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
215 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
216 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
217 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
218 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}),
\r
219 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
220 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})
\r
223 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']},
\r
224 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
\r
225 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
226 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
\r
227 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
228 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}),
\r
229 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
230 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
231 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
232 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
233 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
\r
234 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}),
\r
235 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
\r
236 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}),
\r
237 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
238 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'through': "'QuestionSubscription'", 'to': "orm['forum.Node']"}),
\r
239 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}),
\r
240 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})
\r
242 'forum.validationhash': {
\r
243 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'},
\r
244 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 5, 1, 23, 58, 8, 841000)'}),
\r
245 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
246 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
247 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
\r
248 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
\r
249 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
253 complete_apps = ['forum']
\r