django-orchestra-test/orchestra/contrib/saas/services/bscw.py
Jorge Pastor 39eea70b79 inicio 2023/07/09
edited 2023/11/24 by pedro
2023-11-24 02:23:54 +01:00

26 lines
717 B
Python

from django import forms
from django.utils.translation import gettext_lazy as _
from rest_framework import serializers
from .. import settings
from ..forms import SaaSPasswordForm
from .options import SoftwareService
class BSCWForm(SaaSPasswordForm):
email = forms.EmailField(label=_("Email"), widget=forms.TextInput(attrs={'size': '40'}))
class BSCWDataSerializer(serializers.Serializer):
email = serializers.EmailField(label=_("Email"))
class BSCWService(SoftwareService):
name = 'bscw'
verbose_name = "BSCW"
form = BSCWForm
serializer = BSCWDataSerializer
icon = 'orchestra/icons/apps/BSCW.png'
site_domain = settings.SAAS_BSCW_DOMAIN
change_readonly_fields = ('email',)