Show More
@@ -16,6 +16,7 b' PowDifficulty = 0' | |||
|
16 | 16 | # Delay in seconds |
|
17 | 17 | PostingDelay = 30 |
|
18 | 18 | Autoban = false |
|
19 | DefaultTag = test | |
|
19 | 20 | |
|
20 | 21 | [Messages] |
|
21 | 22 | # Thread bumplimit |
@@ -435,8 +435,11 b' class ThreadForm(PostForm):' | |||
|
435 | 435 | break |
|
436 | 436 | |
|
437 | 437 | if not required_tag_exists: |
|
438 | raise forms.ValidationError( | |
|
439 | _('Need at least one section.')) | |
|
438 | default_tag_name = board_settings.get('Forms', 'DefaultTag')\ | |
|
439 | .strip().lower() | |
|
440 | default_tag, created = Tag.objects.get_or_create( | |
|
441 | name=default_tag_name, required=True) | |
|
442 | tag_set.add(default_tag) | |
|
440 | 443 | |
|
441 | 444 | return tag_set |
|
442 | 445 |
General Comments 0
You need to be logged in to leave comments.
Login now