-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c2c10fd
commit 3685411
Showing
5 changed files
with
97 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import models, migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
('forums', '0026_auto_20150626_0922'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='ForumSettings', | ||
fields=[ | ||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), | ||
('rules', models.TextField()), | ||
('rules_marked_up', models.TextField(null=True, editable=False)), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import models, migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
('forums', '0027_forumsettings'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='forumsettings', | ||
name='rules', | ||
field=models.TextField(default=b'There are no rules.'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations | ||
|
||
from forums.models import ForumSettings | ||
|
||
|
||
def create_default_settings(apps, schema_editor): | ||
f = ForumSettings.get_solo() | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
('forums', '0028_auto_20150626_1255'), | ||
] | ||
|
||
operations = [ | ||
migrations.RunPython(create_default_settings), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
('forums', '0029_auto_20150626_1257'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='forumsettings', | ||
options={'verbose_name': 'Forum Settings'}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import models, migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
('forums', '0030_auto_20150626_1303'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='forumsettings', | ||
name='rules_marked_up', | ||
field=models.TextField(default=b'<p>There are no rules.</p>', editable=False), | ||
), | ||
] |