- 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:
Josako
2025-05-02 13:10:59 +02:00
parent 9652d0bff9
commit 6ef025363d
72 changed files with 1342 additions and 228 deletions

View File

@@ -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):