parent
51f2f85123
commit
1f62b1708d
@ -0,0 +1,31 @@
|
||||
"""comment deletion and visibility
|
||||
|
||||
Revision ID: 2534cc5059a5
|
||||
Revises: 4b6c6a23c639
|
||||
Create Date: 2020-03-20 23:56:02.150560
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
import sqlalchemy_utc
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '2534cc5059a5'
|
||||
down_revision = '4b6c6a23c639'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('comment', sa.Column('visible', sa.Boolean(), nullable=True))
|
||||
op.drop_column('comment', 'delete_reason')
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('comment', sa.Column('delete_reason', sa.VARCHAR(length=512), autoincrement=False, nullable=True))
|
||||
op.drop_column('comment', 'visible')
|
||||
# ### end Alembic commands ###
|
File diff suppressed because one or more lines are too long
@ -1,10 +1,10 @@
|
||||
{% extends 'layout/base_sidebar.html' %}
|
||||
{% extends 'layout/base.html' %}
|
||||
|
||||
{% block sidebar %}
|
||||
{#{% block sidebar %}
|
||||
{{ super()}}
|
||||
|
||||
{% endblock %}
|
||||
{% endblock %}#}
|
||||
|
||||
{% block main_content %}
|
||||
{% block content %}
|
||||
<p class="bio">{{ user.biography }}</p>
|
||||
{% endblock %}
|
Loading…
Reference in New Issue