Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions alembic/versions/3b4e4bcf4a8d_add_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def upgrade():
'profile',
sa.Column('id', sa.Integer, primary_key=True),
sa.Column('company', sa.String(120)),
sa.Column('title', sa.String(20)),
)


Expand Down
3 changes: 2 additions & 1 deletion june/models/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from werkzeug import security
from ._base import db, JuneQuery, SessionMixin

__all__ = ('Account', 'NonAccount')
__all__ = ('Account', 'NonAccount', 'Profile')


class Account(db.Model, SessionMixin):
Expand Down Expand Up @@ -106,3 +106,4 @@ class Profile(db.Model):
# the same as Account.id
id = db.Column(db.Integer, primary_key=True)
company = db.Column(db.String(120))
title = db.Column(db.String(20))
3 changes: 3 additions & 0 deletions june/templates/account/setting.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
{{ horizontal_field(form.website, 'input-block-level') }}
{{ horizontal_field(form.city, 'input-block-level') }}
{{ horizontal_field(form.description, 'input-block-level') }}
<hr>
{{ horizontal_field(form.company, 'input-block-level') }}
{{ horizontal_field(form.title, 'input-block-level') }}

{{ horizontal_form_button(_('Update'), 'btn-success') }}
</form>
Expand Down