Skip to content

Commit 2cf7b09

Browse files
Merge pull request #333 from shopyo/fix/init
fix: set default theme to editorial
2 parents 742a5e4 + 2b131ef commit 2cf7b09

4 files changed

Lines changed: 15 additions & 41 deletions

File tree

pythoncms/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version_info = (1, 0, 0)
1+
version_info = (1, 0, 1)
22
__version__ = ".".join([str(v) for v in version_info])

pythoncms/config_demo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
},
66
"settings": {
77
"APP_NAME": "Demo",
8-
"ACTIVE_FRONT_THEME": "blogus",
8+
"ACTIVE_FRONT_THEME": "editorial",
99
"ACTIVE_BACK_THEME": "boogle",
1010
"CURRENCY": "MUR"
1111
}

pythoncms/migrations/versions/9c6ee690afb6_.py

Lines changed: 0 additions & 36 deletions
This file was deleted.

pythoncms/migrations/versions/cb42bf1aaf17_.py renamed to pythoncms/migrations/versions/a72dfd73a091_.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,32 @@
11
"""empty message
22
3-
Revision ID: cb42bf1aaf17
3+
Revision ID: a72dfd73a091
44
Revises:
5-
Create Date: 2023-01-31 14:33:16.799110
5+
Create Date: 2023-02-01 00:26:33.820602
66
77
"""
88
import sqlalchemy as sa
99
from alembic import op
1010

1111

1212
# revision identifiers, used by Alembic.
13-
revision = "cb42bf1aaf17"
13+
revision = "a72dfd73a091"
1414
down_revision = None
1515
branch_labels = None
1616
depends_on = None
1717

1818

1919
def upgrade():
2020
# ### commands auto generated by Alembic - please adjust! ###
21+
op.create_table(
22+
"contact",
23+
sa.Column("id", sa.Integer(), nullable=False),
24+
sa.Column("created_date", sa.DateTime(), nullable=True),
25+
sa.Column("name", sa.String(length=100), nullable=True),
26+
sa.Column("email", sa.String(length=100), nullable=True),
27+
sa.Column("message", sa.String(length=1024), nullable=True),
28+
sa.PrimaryKeyConstraint("id"),
29+
)
2130
op.create_table(
2231
"i18n_records",
2332
sa.Column("id", sa.Integer(), nullable=False),
@@ -81,4 +90,5 @@ def downgrade():
8190
op.drop_table("roles")
8291
op.drop_table("pages")
8392
op.drop_table("i18n_records")
93+
op.drop_table("contact")
8494
# ### end Alembic commands ###

0 commit comments

Comments
 (0)