##// END OF EJS Templates
Removed null=True from some text fields
neko259 -
r1751:3a810c6e default
parent child Browse files
Show More
@@ -0,0 +1,25 b''
1 # -*- coding: utf-8 -*-
2 # Generated by Django 1.10.4 on 2016-12-29 09:32
3 from __future__ import unicode_literals
4
5 from django.db import migrations, models
6
7
8 class Migration(migrations.Migration):
9
10 dependencies = [
11 ('boards', '0054_auto_20161228_2244'),
12 ]
13
14 operations = [
15 migrations.AlterField(
16 model_name='post',
17 name='text',
18 field=models.TextField(blank=True, default=''),
19 ),
20 migrations.AlterField(
21 model_name='post',
22 name='title',
23 field=models.CharField(blank=True, default='', max_length=200),
24 ),
25 ]
@@ -69,9 +69,9 b' class Post(models.Model, Viewable):'
69 69 app_label = APP_LABEL_BOARDS
70 70 ordering = ('id',)
71 71
72 title = models.CharField(max_length=TITLE_MAX_LENGTH, null=True, blank=True)
72 title = models.CharField(max_length=TITLE_MAX_LENGTH, blank=True, default='')
73 73 pub_time = models.DateTimeField(db_index=True)
74 text = TextField(blank=True, null=True)
74 text = TextField(blank=True, default='')
75 75 _text_rendered = TextField(blank=True, null=True, editable=False)
76 76
77 77 attachments = models.ManyToManyField(Attachment, null=True, blank=True,
General Comments 0
You need to be logged in to leave comments. Login now