Skip to content

Commit

Permalink
Adds type column for UserMixin
Browse files Browse the repository at this point in the history
  • Loading branch information
raddevon committed Apr 7, 2014
1 parent 895408e commit 4123c47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions flask_permissions/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ class UserMixin(db.Model):
id = db.Column(db.Integer, primary_key=True)
_roles = db.relationship(
'Role', secondary=user_role_table, backref='users')
type = Column(String(50))

roles = association_proxy('_roles', 'name', creator=_role_find_or_create)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name='Flask-Permissions',
version='0.2.1',
version='0.2.2',
url='https://github.com/raddevon/flask-permissions',
license='MIT',
author='Devon Campbell',
Expand Down

0 comments on commit 4123c47

Please sign in to comment.