15 lines
440 B
Python
15 lines
440 B
Python
"""Scout — view-only access to tryouts and evaluations."""
|
|
from app.models.user_model.user import User
|
|
|
|
|
|
class Scout(User):
|
|
"""Scout — view-only access to tryouts and evaluations."""
|
|
__mapper_args__ = {'polymorphic_identity': 'scout'}
|
|
|
|
def can_evaluate(self):
|
|
return True
|
|
|
|
def get_visible_tryouts(self):
|
|
from app.models.tryout.tryout import Tryout
|
|
return Tryout.query.order_by(Tryout.date).all()
|