##// END OF EJS Templates
Enlarged title field
neko259 -
r612:7722a7e6 default
parent child Browse files
Show More
@@ -0,0 +1,90 b''
1 # -*- coding: utf-8 -*-
2 from south.utils import datetime_utils as datetime
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
6
7
8 class Migration(SchemaMigration):
9
10 def forwards(self, orm):
11
12 # Changing field 'Post.title'
13 db.alter_column(u'boards_post', 'title', self.gf('django.db.models.fields.CharField')(max_length=200))
14 # Adding index on 'Tag', fields ['name']
15 db.create_index(u'boards_tag', ['name'])
16
17
18 def backwards(self, orm):
19 # Removing index on 'Tag', fields ['name']
20 db.delete_index(u'boards_tag', ['name'])
21
22
23 # Changing field 'Post.title'
24 db.alter_column(u'boards_post', 'title', self.gf('django.db.models.fields.CharField')(max_length=50))
25
26 models = {
27 'boards.ban': {
28 'Meta': {'object_name': 'Ban'},
29 'can_read': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
30 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
31 'ip': ('django.db.models.fields.GenericIPAddressField', [], {'max_length': '39'}),
32 'reason': ('django.db.models.fields.CharField', [], {'default': "'Auto'", 'max_length': '200'})
33 },
34 'boards.post': {
35 'Meta': {'object_name': 'Post'},
36 '_text_rendered': ('django.db.models.fields.TextField', [], {}),
37 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
38 'image': ('boards.thumbs.ImageWithThumbsField', [], {'max_length': '100', 'blank': 'True'}),
39 'image_hash': ('django.db.models.fields.CharField', [], {'max_length': '36'}),
40 'image_height': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
41 'image_pre_height': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
42 'image_pre_width': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
43 'image_width': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
44 'last_edit_time': ('django.db.models.fields.DateTimeField', [], {}),
45 'poster_ip': ('django.db.models.fields.GenericIPAddressField', [], {'max_length': '39'}),
46 'poster_user_agent': ('django.db.models.fields.TextField', [], {}),
47 'pub_time': ('django.db.models.fields.DateTimeField', [], {}),
48 'referenced_posts': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'rfp+'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['boards.Post']"}),
49 'text': ('markupfield.fields.MarkupField', [], {'rendered_field': 'True'}),
50 'text_markup_type': ('django.db.models.fields.CharField', [], {'default': "'markdown'", 'max_length': '30'}),
51 'thread': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['boards.Post']", 'null': 'True'}),
52 'thread_new': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['boards.Thread']", 'null': 'True'}),
53 'title': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
54 'user': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['boards.User']", 'null': 'True'})
55 },
56 'boards.setting': {
57 'Meta': {'object_name': 'Setting'},
58 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
59 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
60 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['boards.User']"}),
61 'value': ('django.db.models.fields.CharField', [], {'max_length': '50'})
62 },
63 'boards.tag': {
64 'Meta': {'object_name': 'Tag'},
65 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
66 'linked': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['boards.Tag']", 'null': 'True', 'blank': 'True'}),
67 'name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'db_index': 'True'}),
68 'threads': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'tag+'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['boards.Thread']"})
69 },
70 'boards.thread': {
71 'Meta': {'object_name': 'Thread'},
72 'archived': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
73 'bump_time': ('django.db.models.fields.DateTimeField', [], {}),
74 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
75 'last_edit_time': ('django.db.models.fields.DateTimeField', [], {}),
76 'replies': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'tre+'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['boards.Post']"}),
77 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['boards.Tag']", 'symmetrical': 'False'})
78 },
79 'boards.user': {
80 'Meta': {'object_name': 'User'},
81 'fav_tags': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['boards.Tag']", 'null': 'True', 'blank': 'True'}),
82 'fav_threads': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'+'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['boards.Post']"}),
83 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
84 'rank': ('django.db.models.fields.IntegerField', [], {}),
85 'registration_time': ('django.db.models.fields.DateTimeField', [], {}),
86 'user_id': ('django.db.models.fields.CharField', [], {'max_length': '50'})
87 }
88 }
89
90 complete_apps = ['boards'] No newline at end of file
@@ -19,8 +19,6 b' from markupfield.fields import MarkupFie'
19 from neboard import settings
19 from neboard import settings
20 from boards import thumbs
20 from boards import thumbs
21
21
22 MAX_TITLE_LENGTH = 50
23
24 APP_LABEL_BOARDS = 'boards'
22 APP_LABEL_BOARDS = 'boards'
25
23
26 CACHE_KEY_PPD = 'ppd'
24 CACHE_KEY_PPD = 'ppd'
@@ -33,7 +31,7 b" BAN_REASON_AUTO = 'Auto'"
33
31
34 IMAGE_THUMB_SIZE = (200, 150)
32 IMAGE_THUMB_SIZE = (200, 150)
35
33
36 TITLE_MAX_LENGTH = 50
34 TITLE_MAX_LENGTH = 200
37
35
38 DEFAULT_MARKUP_TYPE = 'markdown'
36 DEFAULT_MARKUP_TYPE = 'markdown'
39
37
General Comments 0
You need to be logged in to leave comments. Login now