3 from south.db import db
\r
4 from south.v2 import DataMigration
\r
5 from django.db import models
\r
7 class Migration(DataMigration):
\r
9 def forwards(self, orm):
\r
10 for r in orm.Repute.objects.all():
\r
11 r.value = r.positive + r.negative
\r
12 r.user_previous_rep = r.reputation - r.value
\r
16 def backwards(self, orm):
\r
17 for r in orm.Repute.objects.all():
\r
19 r.positive = r.value
\r
23 r.negative = r.value
\r
25 r.reputation = r.user_previous_rep + r.value
\r
30 'Meta': {'object_name': 'Group'},
\r
31 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
32 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
\r
33 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})
\r
35 'auth.permission': {
\r
36 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
\r
37 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
38 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
39 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
40 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
\r
43 'Meta': {'object_name': 'User'},
\r
44 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
45 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
\r
46 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
\r
47 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}),
\r
48 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
49 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
50 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
51 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
52 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
53 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
\r
54 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
\r
55 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}),
\r
56 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
\r
58 'contenttypes.contenttype': {
\r
59 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
\r
60 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
61 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
62 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
63 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
\r
66 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"},
\r
67 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
68 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}),
\r
69 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
70 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
71 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
72 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
73 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
75 'forum.anonymousanswer': {
\r
76 'Meta': {'object_name': 'AnonymousAnswer'},
\r
77 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
78 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
\r
79 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
80 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
\r
81 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_answers'", 'to': "orm['forum.Question']"}),
\r
82 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
\r
83 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),
\r
84 'text': ('django.db.models.fields.TextField', [], {}),
\r
85 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})
\r
87 'forum.anonymousquestion': {
\r
88 'Meta': {'object_name': 'AnonymousQuestion'},
\r
89 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
90 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
\r
91 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
92 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
\r
93 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
\r
94 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),
\r
95 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
96 'text': ('django.db.models.fields.TextField', [], {}),
\r
97 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
98 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})
\r
101 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"},
\r
102 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
103 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
104 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
\r
105 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
106 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.User']"}),
\r
107 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
108 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
109 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
110 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_answers'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
111 'html': ('django.db.models.fields.TextField', [], {}),
\r
112 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
113 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
114 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_answers'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
115 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
116 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.Question']"}),
\r
117 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
118 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
119 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
120 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
121 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
\r
123 'forum.answerrevision': {
\r
124 'Meta': {'object_name': 'AnswerRevision', 'db_table': "u'answer_revision'"},
\r
125 'answer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Answer']"}),
\r
126 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answerrevisions'", 'to': "orm['forum.User']"}),
\r
127 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
128 'revised_at': ('django.db.models.fields.DateTimeField', [], {}),
\r
129 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
130 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}),
\r
131 'text': ('django.db.models.fields.TextField', [], {})
\r
133 'forum.authkeyuserassociation': {
\r
134 'Meta': {'object_name': 'AuthKeyUserAssociation'},
\r
135 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
136 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
137 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
138 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
\r
139 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"})
\r
142 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"},
\r
143 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
144 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}),
\r
145 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
146 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
147 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
148 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
149 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"})
\r
152 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"},
\r
153 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
154 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}),
\r
155 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
156 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
157 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
158 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
\r
159 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}),
\r
160 'type': ('django.db.models.fields.SmallIntegerField', [], {})
\r
163 'Meta': {'object_name': 'Comment', 'db_table': "u'comment'"},
\r
164 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
165 'comment': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
166 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
167 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
168 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
169 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_comments'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
170 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
171 'liked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'comments_liked'", 'through': "'LikedComment'", 'to': "orm['forum.User']"}),
\r
172 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
173 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
174 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'to': "orm['forum.User']"})
\r
176 'forum.favoritequestion': {
\r
177 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"},
\r
178 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
179 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
180 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
\r
181 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"})
\r
183 'forum.flaggeditem': {
\r
184 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"},
\r
185 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
186 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
187 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
188 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
189 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
190 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}),
\r
191 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"})
\r
193 'forum.keyvalue': {
\r
194 'Meta': {'object_name': 'KeyValue'},
\r
195 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
196 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
197 'value': ('forum.models.utils.PickledObjectField', [], {})
\r
199 'forum.likedcomment': {
\r
200 'Meta': {'object_name': 'LikedComment'},
\r
201 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
202 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
203 'comment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Comment']"}),
\r
204 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
205 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
207 'forum.markedtag': {
\r
208 'Meta': {'object_name': 'MarkedTag'},
\r
209 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
210 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
211 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}),
\r
212 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"})
\r
214 'forum.question': {
\r
215 'Meta': {'object_name': 'Question', 'db_table': "u'question'"},
\r
216 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
217 'answer_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
218 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
219 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questions'", 'to': "orm['forum.User']"}),
\r
220 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
\r
221 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
222 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
223 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
224 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
225 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
226 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
227 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_questions'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
228 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}),
\r
229 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
230 'followed_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'followed_questions'", 'to': "orm['forum.User']"}),
\r
231 'html': ('django.db.models.fields.TextField', [], {}),
\r
232 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
233 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
234 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'to': "orm['forum.User']"}),
\r
235 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
236 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_questions'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
237 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
238 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
239 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}),
\r
240 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),
\r
241 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
242 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'questions'", 'to': "orm['forum.Tag']"}),
\r
243 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
244 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
245 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
246 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
247 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
248 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
\r
250 'forum.questionrevision': {
\r
251 'Meta': {'object_name': 'QuestionRevision', 'db_table': "u'question_revision'"},
\r
252 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questionrevisions'", 'to': "orm['forum.User']"}),
\r
253 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
254 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Question']"}),
\r
255 'revised_at': ('django.db.models.fields.DateTimeField', [], {}),
\r
256 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
257 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}),
\r
258 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
259 'text': ('django.db.models.fields.TextField', [], {}),
\r
260 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'})
\r
262 'forum.questionsubscription': {
\r
263 'Meta': {'object_name': 'QuestionSubscription'},
\r
264 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
265 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
266 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 6, 11, 30, 3, 497000)'}),
\r
267 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
\r
268 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
271 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"},
\r
272 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
273 'negative': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
274 'positive': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
275 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
\r
276 'reputation': ('django.db.models.fields.IntegerField', [], {'default': '1'}),
\r
277 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}),
\r
278 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
279 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}),
\r
280 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
281 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'})
\r
283 'forum.subscriptionsettings': {
\r
284 'Meta': {'object_name': 'SubscriptionSettings'},
\r
285 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
286 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
287 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
288 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
289 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}),
\r
290 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}),
\r
291 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
\r
292 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
293 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
294 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
295 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
296 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
297 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
298 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
299 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
300 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
301 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
\r
302 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"})
\r
305 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"},
\r
306 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}),
\r
307 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
308 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
309 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
310 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
311 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}),
\r
312 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
313 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})
\r
316 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']},
\r
317 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
\r
318 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
319 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
\r
320 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
321 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}),
\r
322 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
323 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
324 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
325 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
326 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
\r
327 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}),
\r
328 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
\r
329 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}),
\r
330 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
331 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}),
\r
332 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})
\r
334 'forum.validationhash': {
\r
335 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'},
\r
336 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 7, 11, 30, 3, 573000)'}),
\r
337 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
338 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
339 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
\r
340 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
\r
341 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
344 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"},
\r
345 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
346 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
347 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
348 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
349 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}),
\r
350 'vote': ('django.db.models.fields.SmallIntegerField', [], {}),
\r
351 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'})
\r
355 complete_apps = ['forum']
\r