|
@@ -18,14 +18,12 @@ settings_fixture = (
|
|
|
'input': "text",
|
|
|
'separator': _("Board Name"),
|
|
|
'name': _("Board Name"),
|
|
|
- 'position': 0,
|
|
|
}),
|
|
|
('board_header', {
|
|
|
'type': "string",
|
|
|
'input': "text",
|
|
|
'name': _("Board Header"),
|
|
|
'description': _("Some themes allow you to define text in board header. Leave empty to use Board Name instead."),
|
|
|
- 'position': 1,
|
|
|
}),
|
|
|
('board_header_postscript', {
|
|
|
'value': "Work in progress ",
|
|
@@ -33,7 +31,6 @@ settings_fixture = (
|
|
|
'input': "text",
|
|
|
'name': _("Board Header Postscript"),
|
|
|
'description': _("Additional text displayed in some themes board header after board name."),
|
|
|
- 'position': 2,
|
|
|
}),
|
|
|
('board_index_title', {
|
|
|
'type': "string",
|
|
@@ -41,14 +38,12 @@ settings_fixture = (
|
|
|
'separator': _("Board Index"),
|
|
|
'name': _("Board Index Title"),
|
|
|
'description': _("If you want to, you can replace page title content on Board Index with custom one."),
|
|
|
- 'position': 3,
|
|
|
}),
|
|
|
('board_index_meta', {
|
|
|
'type': "string",
|
|
|
'input': "text",
|
|
|
'name': _("Board Index Meta-Description"),
|
|
|
'description': _("Meta-Description used to describe your board's index page."),
|
|
|
- 'position': 4,
|
|
|
}),
|
|
|
('board_credits', {
|
|
|
'type': "string",
|
|
@@ -56,7 +51,6 @@ settings_fixture = (
|
|
|
'separator': _("Board Footer"),
|
|
|
'name': _("Custom Credit"),
|
|
|
'description': _("Custom Credit to display in board footer above software and theme copyright information. You can use HTML."),
|
|
|
- 'position': 5,
|
|
|
}),
|
|
|
('email_footnote', {
|
|
|
'type': "string",
|
|
@@ -64,14 +58,12 @@ settings_fixture = (
|
|
|
'separator': _("Board E-Mails"),
|
|
|
'name': _("Custom Footnote in HTML E-mails"),
|
|
|
'description': _("Custom Footnote to display in HTML e-mail messages sent by board."),
|
|
|
- 'position': 6,
|
|
|
}),
|
|
|
('email_footnote_plain', {
|
|
|
'type': "string",
|
|
|
'input': "textarea",
|
|
|
'name': _("Custom Footnote in plain text E-mails"),
|
|
|
'description': _("Custom Footnote to display in plain text e-mail messages sent by board."),
|
|
|
- 'position': 7,
|
|
|
}),
|
|
|
),
|
|
|
}),
|
|
@@ -86,7 +78,7 @@ def load_settings_group_fixture(group, fixture):
|
|
|
)
|
|
|
model_group.save(force_insert=True)
|
|
|
fixture = fixture.get('settings', ())
|
|
|
-
|
|
|
+ position = 0
|
|
|
for setting in fixture:
|
|
|
value = setting[1].get('value')
|
|
|
value_default = setting[1].get('default')
|
|
@@ -107,12 +99,13 @@ def load_settings_group_fixture(group, fixture):
|
|
|
type=setting[1].get('type'),
|
|
|
input=setting[1].get('input'),
|
|
|
extra=base64.encodestring(pickle.dumps(setting[1].get('extra', {}), pickle.HIGHEST_PROTOCOL)),
|
|
|
- position=setting[1].get('position'),
|
|
|
+ position=position,
|
|
|
separator=get_msgid(setting[1].get('separator')),
|
|
|
name=get_msgid(setting[1].get('name')),
|
|
|
description=get_msgid(setting[1].get('description')),
|
|
|
)
|
|
|
model_setting.save(force_insert=True)
|
|
|
+ position += 1
|
|
|
|
|
|
|
|
|
def update_settings_group_fixture(group, fixture):
|