# HG changeset patch # User neko259 # Date 2017-09-22 07:47:38 # Node ID 916b2d74ec8d9b290f917191629436e4d5c757c1 # Parent 5728b509a0357ca9f5b0e8baa6c72c96bd3d288d Tripcode should be delimited by 2 hashes diff --git a/boards/forms/__init__.py b/boards/forms/__init__.py --- a/boards/forms/__init__.py +++ b/boards/forms/__init__.py @@ -68,7 +68,7 @@ TAG_MAX_LENGTH = 20 TEXTAREA_ROWS = 4 -TRIPCODE_DELIM = '#' +TRIPCODE_DELIM = '##' # TODO Maybe this may be converted into the database table? MIMETYPE_EXTENSIONS = { @@ -178,7 +178,7 @@ class PostForm(NeboardForm): title = forms.CharField(max_length=TITLE_MAX_LENGTH, required=False, label=LABEL_TITLE, widget=forms.TextInput( - attrs={ATTRIBUTE_PLACEHOLDER: 'title#tripcode'})) + attrs={ATTRIBUTE_PLACEHOLDER: 'Title{}tripcode'.format(TRIPCODE_DELIM)})) text = forms.CharField( widget=FormatPanel(attrs={ ATTRIBUTE_PLACEHOLDER: TEXT_PLACEHOLDER,