22
22
('yms' , _ ('1969/07/the-eagle-has-landed/' , )),
23
23
('ymds' , _ ('1969/07/16/the-eagle-has-landed/' , )),
24
24
('ymdi' , _ ('1969/07/16/11/' , )),
25
- )
25
+ )
26
26
27
27
NON_PERMALINK_HANDLING = (
28
28
(200 , _ ('Allow' )),
29
29
(302 , _ ('Redirect to permalink (default)' )),
30
30
(301 , _ ('Permanent redirect to permalink' )),
31
31
(404 , _ ('Return 404: Not Found' )),
32
- )
32
+ )
33
33
34
34
# TODO override default if support for Django 1.6 will be dropped
35
35
TEMPLATE_PREFIX_CHOICES = getattr (
@@ -41,7 +41,7 @@ class NewsBlogConfig(TranslatableModel, AppHookConfig):
41
41
"""Adds some translatable, per-app-instance fields."""
42
42
translations = TranslatedFields (
43
43
app_title = models .CharField (_ ('name' ), max_length = 234 ),
44
- )
44
+ )
45
45
46
46
permalink_type = models .CharField (
47
47
_ ('permalink type' ), max_length = 8 ,
@@ -60,21 +60,21 @@ class NewsBlogConfig(TranslatableModel, AppHookConfig):
60
60
blank = False ,
61
61
default = 5 ,
62
62
help_text = _ ('When paginating list views, how many articles per page?' ),
63
- )
63
+ )
64
64
pagination_pages_start = models .PositiveIntegerField (
65
65
_ ('Pagination pages start' ),
66
66
blank = False ,
67
67
default = 10 ,
68
68
help_text = _ ('When paginating list views, after how many pages '
69
69
'should we start grouping the page numbers.' ),
70
- )
70
+ )
71
71
pagination_pages_visible = models .PositiveIntegerField (
72
72
_ ('Pagination pages visible' ),
73
73
blank = False ,
74
74
default = 4 ,
75
75
help_text = _ ('When grouping page numbers, this determines how many '
76
76
'pages are visible on each side of the active page.' ),
77
- )
77
+ )
78
78
exclude_featured = models .PositiveSmallIntegerField (
79
79
_ ('Excluded featured articles count' ),
80
80
blank = True ,
@@ -84,7 +84,7 @@ class NewsBlogConfig(TranslatableModel, AppHookConfig):
84
84
'view, you may prefer to exclude featured articles from the '
85
85
'article list itself to avoid duplicates. To do this, enter the '
86
86
'same number here as in your Featured Articles plugin.' ),
87
- )
87
+ )
88
88
template_prefix = models .CharField (
89
89
max_length = 20 ,
90
90
null = True , blank = True ,
@@ -96,49 +96,49 @@ class NewsBlogConfig(TranslatableModel, AppHookConfig):
96
96
_ ('Auto-create authors?' ),
97
97
default = True ,
98
98
help_text = _ ('Automatically create authors from logged-in user?' ),
99
- )
99
+ )
100
100
101
101
# ALDRYN_NEWSBLOG_SEARCH
102
102
search_indexed = models .BooleanField (
103
103
_ ('Include in search index?' ),
104
104
default = True ,
105
105
help_text = _ ('Include articles in search indexes?' ),
106
- )
106
+ )
107
107
108
108
placeholder_base_top = PlaceholderField (
109
109
'newsblog_base_top' ,
110
110
related_name = 'aldryn_newsblog_base_top' ,
111
- )
111
+ )
112
112
113
113
placeholder_base_sidebar = PlaceholderField (
114
114
'newsblog_base_sidebar' ,
115
115
related_name = 'aldryn_newsblog_base_sidebar' ,
116
- )
116
+ )
117
117
118
118
placeholder_list_top = PlaceholderField (
119
119
'newsblog_list_top' ,
120
120
related_name = 'aldryn_newsblog_list_top' ,
121
- )
121
+ )
122
122
123
123
placeholder_list_footer = PlaceholderField (
124
124
'newsblog_list_footer' ,
125
125
related_name = 'aldryn_newsblog_list_footer' ,
126
- )
126
+ )
127
127
128
128
placeholder_detail_top = PlaceholderField (
129
129
'newsblog_detail_top' ,
130
130
related_name = 'aldryn_newsblog_detail_top' ,
131
- )
131
+ )
132
132
133
133
placeholder_detail_bottom = PlaceholderField (
134
134
'newsblog_detail_bottom' ,
135
135
related_name = 'aldryn_newsblog_detail_bottom' ,
136
- )
136
+ )
137
137
138
138
placeholder_detail_footer = PlaceholderField (
139
139
'newsblog_detail_footer' ,
140
140
related_name = 'aldryn_newsblog_detail_footer' ,
141
- )
141
+ )
142
142
143
143
def get_app_title (self ):
144
144
return getattr (self , 'app_title' , _ ('untitled' ))
0 commit comments