3 from south.db import db
4 from south.v2 import DataMigration
5 from django.db import models
6 from forum.migrations import ProgressBar
8 class Migration(DataMigration):
10 def forwards(self, orm):
13 return get_abs_par(n.parent)
17 n_count = orm.Node.objects.count()
18 print "\nConverting %d nodes:" % n_count
19 progress = ProgressBar(n_count)
21 for n in orm.Node.objects.all():
23 n.abs_parent = get_abs_par(n)
32 def backwards(self, orm):
33 "Write your backwards methods here."
37 'Meta': {'object_name': 'Group'},
38 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
39 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
40 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})
43 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
44 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
45 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
46 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
47 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
50 'Meta': {'object_name': 'User'},
51 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
52 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
53 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
54 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}),
55 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
56 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
57 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
58 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
59 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
60 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
61 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
62 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}),
63 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
65 'contenttypes.contenttype': {
66 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
67 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
68 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
69 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
70 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
73 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"},
74 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
75 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}),
76 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
77 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
78 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
79 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
80 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
82 'forum.anonymousnode': {
83 'Meta': {'object_name': 'AnonymousNode', '_ormbases': ['forum.Node']},
84 'convertible_to': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}),
85 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}),
86 'validation_hash': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_content'", 'to': "orm['forum.Node']"})
89 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"},
90 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
91 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
92 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
93 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}),
94 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
95 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
97 'forum.authkeyuserassociation': {
98 'Meta': {'object_name': 'AuthKeyUserAssociation'},
99 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
100 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
101 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
102 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
103 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"})
106 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"},
107 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
108 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}),
109 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
110 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
111 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
112 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
113 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"})
116 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"},
117 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
118 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}),
119 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
120 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
121 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
122 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
123 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}),
124 'type': ('django.db.models.fields.SmallIntegerField', [], {})
126 'forum.favoritequestion': {
127 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"},
128 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
129 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
130 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
131 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"})
133 'forum.flaggeditem': {
134 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"},
135 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
136 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
137 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
138 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'null': 'True', 'to': "orm['forum.Node']"}),
139 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}),
140 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"})
143 'Meta': {'object_name': 'KeyValue'},
144 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
145 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
146 'value': ('forum.models.utils.PickledObjectField', [], {})
149 'Meta': {'object_name': 'MarkedTag'},
150 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
151 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
152 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}),
153 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"})
156 'Meta': {'object_name': 'Node'},
157 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}),
158 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}),
159 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
160 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}),
161 'body': ('django.db.models.fields.TextField', [], {}),
162 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
163 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
164 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
165 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_nodes'", 'null': 'True', 'to': "orm['forum.User']"}),
166 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
167 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
168 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_nodes'", 'null': 'True', 'to': "orm['forum.User']"}),
169 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}),
170 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
171 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}),
172 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
173 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
174 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}),
175 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
176 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
177 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'})
179 'forum.noderevision': {
180 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'},
181 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}),
182 'body': ('django.db.models.fields.TextField', [], {}),
183 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
184 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}),
185 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
186 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),
187 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
188 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
189 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'})
192 'Meta': {'object_name': 'Question', 'db_table': "u'question'"},
193 'accepted_answer': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'question_accepting'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Answer']"}),
194 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
195 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
196 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
197 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
198 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}),
199 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}),
200 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
201 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
202 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'null': 'True', 'to': "orm['forum.User']"}),
203 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True'}),
204 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}),
205 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
206 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
207 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
209 'forum.questionsubscription': {
210 'Meta': {'object_name': 'QuestionSubscription'},
211 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
212 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
213 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 17, 1, 20, 29, 905000)'}),
214 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
215 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
218 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"},
219 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
220 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
221 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'null': 'True', 'to': "orm['forum.Node']"}),
222 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
223 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}),
224 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
225 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}),
226 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
227 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'})
229 'forum.subscriptionsettings': {
230 'Meta': {'object_name': 'SubscriptionSettings'},
231 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
232 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
233 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
234 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
235 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}),
236 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}),
237 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
238 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
239 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
240 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
241 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
242 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
243 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
244 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
245 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
246 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
247 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
248 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"})
251 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"},
252 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}),
253 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
254 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
255 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}),
256 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
257 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}),
258 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
259 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})
262 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']},
263 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
264 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
265 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
266 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
267 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}),
268 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
269 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
270 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
271 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
272 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
273 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}),
274 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
275 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}),
276 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
277 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}),
278 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})
280 'forum.validationhash': {
281 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'},
282 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 18, 1, 20, 29, 974000)'}),
283 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
284 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
285 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
286 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
287 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
290 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"},
291 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
292 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
293 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'null': 'True', 'to': "orm['forum.Node']"}),
294 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}),
295 'vote': ('django.db.models.fields.SmallIntegerField', [], {}),
296 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'})
300 complete_apps = ['forum']