- Partner model additions
- menu changes to allow for partners - partner views and forms now in partner_forms.py and partner_views.py - Introduction of services layer - Allow all configuration to handle partner configurations, and adaptation of caching to allow for this
This commit is contained in:
@@ -7,7 +7,7 @@ import pytz
|
||||
from flask_security import current_user
|
||||
|
||||
from common.models.user import Role
|
||||
from common.services.user_service import UserService
|
||||
from common.services.user_services import UserServices
|
||||
from config.type_defs.service_types import SERVICE_TYPES
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ class BaseUserForm(FlaskForm):
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(BaseUserForm, self).__init__(*args, **kwargs)
|
||||
self.roles.choices = UserService.get_assignable_roles()
|
||||
self.roles.choices = UserServices.get_assignable_roles()
|
||||
|
||||
|
||||
class CreateUserForm(BaseUserForm):
|
||||
|
||||
Reference in New Issue
Block a user