mirror of https://gitlab.com/tildes/tildes.git
Browse Source
Minor updates to Financials and donation goal
Minor updates to Financials and donation goal
Just a couple relatively minor updates to the financial stuff: * Removed the "is_approximate" column on the table and just added a more general note about most of the amounts being approximate. It was more annoying to worry about than meaningful. * Some style/layout/wording tweaks to the donation goal to try to make it a little more obvious that this is a long-term sustainability goal.merge-requests/110/head
5 changed files with 57 additions and 15 deletions
-
33tildes/alembic/versions/fe91222503ef_financials_drop_is_approximate_column.py
-
11tildes/scss/modules/_donation.scss
-
3tildes/tildes/models/financials.py
-
11tildes/tildes/templates/financials.jinja2
-
14tildes/tildes/templates/home.jinja2
@ -0,0 +1,33 @@ |
|||
"""Financials: Drop is_approximate column |
|||
|
|||
Revision ID: fe91222503ef |
|||
Revises: 84dc19f6e876 |
|||
Create Date: 2020-03-04 22:38:15.528403 |
|||
|
|||
""" |
|||
from alembic import op |
|||
import sqlalchemy as sa |
|||
|
|||
|
|||
# revision identifiers, used by Alembic. |
|||
revision = "fe91222503ef" |
|||
down_revision = "84dc19f6e876" |
|||
branch_labels = None |
|||
depends_on = None |
|||
|
|||
|
|||
def upgrade(): |
|||
op.drop_column("financials", "is_approximate") |
|||
|
|||
|
|||
def downgrade(): |
|||
op.add_column( |
|||
"financials", |
|||
sa.Column( |
|||
"is_approximate", |
|||
sa.BOOLEAN(), |
|||
server_default=sa.text("false"), |
|||
autoincrement=False, |
|||
nullable=False, |
|||
), |
|||
) |
Reference in new issue
xxxxxxxxxx