@ -431,8 +431,10 @@ class Migration(migrations.Migration):
name = " OptionalUser " ,
name = " OptionalUser " ,
bases = ( re2o . mixins . AclMixin , models . Model ) ,
bases = ( re2o . mixins . AclMixin , models . Model ) ,
options = {
options = {
" permissions " : ( ( " view_optionaluser " , " Can view the user options " ) , ) ,
" permissions " : (
" verbose_name " : " user options " ,
( " view_optionaluser " , " Can view the user preferences " ) ,
) ,
" verbose_name " : " user preferences " ,
} ,
} ,
fields = [
fields = [
(
(
@ -446,10 +448,30 @@ class Migration(migrations.Migration):
) ,
) ,
( " is_tel_mandatory " , models . BooleanField ( default = True ) ) ,
( " is_tel_mandatory " , models . BooleanField ( default = True ) ) ,
( " gpg_fingerprint " , models . BooleanField ( default = True ) ) ,
( " gpg_fingerprint " , models . BooleanField ( default = True ) ) ,
( " all_can_create_club " , models . BooleanField ( default = False ) ) ,
(
( " all_can_create_adherent " , models . BooleanField ( default = False ) ) ,
" all_can_create_club " ,
( " self_change_shell " , models . BooleanField ( default = False ) ) ,
models . BooleanField (
( " self_change_pseudo " , models . BooleanField ( default = True ) ) ,
default = False , help_text = " Users can create a club. "
) ,
) ,
(
" all_can_create_adherent " ,
models . BooleanField (
default = False , help_text = " Users can create a member. "
) ,
) ,
(
" self_change_shell " ,
models . BooleanField (
default = False , help_text = " Users can edit their shell. "
) ,
) ,
(
" self_change_pseudo " ,
models . BooleanField (
default = True , help_text = " Users can edit their pseudo. "
) ,
) ,
(
(
" self_room_policy " ,
" self_room_policy " ,
models . CharField (
models . CharField (
@ -466,7 +488,13 @@ class Migration(migrations.Migration):
max_length = 32 ,
max_length = 32 ,
) ,
) ,
) ,
) ,
( " local_email_accounts_enabled " , models . BooleanField ( default = False ) ) ,
(
" local_email_accounts_enabled " ,
models . BooleanField (
default = False ,
help_text = " Enable local email accounts for users. " ,
) ,
) ,
(
(
" local_email_domain " ,
" local_email_domain " ,
models . CharField (
models . CharField (
@ -496,13 +524,34 @@ class Migration(migrations.Migration):
help_text = " Users with an email address not yet confirmed will be disabled after this number of days. " ,
help_text = " Users with an email address not yet confirmed will be disabled after this number of days. " ,
) ,
) ,
) ,
) ,
( " self_adhesion " , models . BooleanField ( default = False ) ) ,
(
( " all_users_active " , models . BooleanField ( default = False ) ) ,
" self_adhesion " ,
models . BooleanField (
default = False ,
help_text = " A new user can create their account on Re2o. " ,
) ,
) ,
(
" all_users_active " ,
models . BooleanField (
default = False ,
help_text = " If True, all new created and connected users are active. If False, only when a valid registration has been paid. " ,
) ,
) ,
(
(
" allow_set_password_during_user_creation " ,
" allow_set_password_during_user_creation " ,
models . BooleanField ( default = False ) ,
models . BooleanField (
default = False ,
help_text = " If True, users have the choice to receive an email containing a link to reset their password during creation, or to directly set their password in the page. If False, an email is always sent. " ,
) ,
) ,
(
" allow_archived_connexion " ,
models . BooleanField (
default = False ,
help_text = " If True, archived users are allowed to connect. " ,
) ,
) ,
) ,
( " allow_archived_connexion " , models . BooleanField ( default = False ) ) ,
] ,
] ,
) ,
) ,
migrations . CreateModel (
migrations . CreateModel (
@ -540,12 +589,13 @@ class Migration(migrations.Migration):
verbose_name = " default Time To Live (TTL) for CNAME, A and AAAA records " ,
verbose_name = " default Time To Live (TTL) for CNAME, A and AAAA records " ,
) ,
) ,
) ,
) ,
( " max_lambdauser_aliases " , models . IntegerField ( default = 10 ) ) ,
] ,
] ,
options = {
options = {
" permissions " : (
" permissions " : (
( " view_optionalmachine " , " Can view the machine option s " ) ,
( " view_optionalmachine " , " Can view the machine preference s " ) ,
) ,
) ,
" verbose_name " : " machine option s " ,
" verbose_name " : " machine preference s " ,
} ,
} ,
) ,
) ,
migrations . CreateModel (
migrations . CreateModel (
@ -553,9 +603,9 @@ class Migration(migrations.Migration):
bases = ( re2o . mixins . AclMixin , models . Model ) ,
bases = ( re2o . mixins . AclMixin , models . Model ) ,
options = {
options = {
" permissions " : (
" permissions " : (
( " view_optionaltopologie " , " Can view the topology option s " ) ,
( " view_optionaltopologie " , " Can view the topology preference s " ) ,
) ,
) ,
" verbose_name " : " topology option s " ,
" verbose_name " : " topology preference s " ,
} ,
} ,
fields = [
fields = [
(
(
@ -567,9 +617,27 @@ class Migration(migrations.Migration):
verbose_name = " ID " ,
verbose_name = " ID " ,
) ,
) ,
) ,
) ,
( " switchs_web_management " , models . BooleanField ( default = False ) ) ,
(
( " switchs_web_management_ssl " , models . BooleanField ( default = False ) ) ,
" switchs_web_management " ,
( " switchs_rest_management " , models . BooleanField ( default = False ) ) ,
models . BooleanField (
default = False ,
help_text = " Web management, activated in case of automatic provision. " ,
) ,
) ,
(
" switchs_web_management_ssl " ,
models . BooleanField (
default = False ,
help_text = " SSL web management, make sure that a certificate is installed on the switch. " ,
) ,
) ,
(
" switchs_rest_management " ,
models . BooleanField (
default = False ,
help_text = " REST management, activated in case of automatic provision. " ,
) ,
) ,
(
(
" switchs_provision " ,
" switchs_provision " ,
models . CharField (
models . CharField (
@ -611,14 +679,14 @@ class Migration(migrations.Migration):
(
(
" radius_key " ,
" radius_key " ,
re2o . aes_field . AESEncryptedField (
re2o . aes_field . AESEncryptedField (
help_text = " Clef radius " , max_length = 255
help_text = " RADIUS key. " , max_length = 255
) ,
) ,
) ,
) ,
(
(
" comment " ,
" comment " ,
models . CharField (
models . CharField (
blank = True ,
blank = True ,
help_text = " Commentaire de cette clef " ,
help_text = " Comment for this key. " ,
max_length = 255 ,
max_length = 255 ,
null = True ,
null = True ,
) ,
) ,
@ -626,9 +694,8 @@ class Migration(migrations.Migration):
(
(
" default_switch " ,
" default_switch " ,
models . BooleanField (
models . BooleanField (
default = True ,
default = False ,
help_text = " Clef par défaut des switchs " ,
help_text = " Default key for switches. " ,
unique = True ,
) ,
) ,
) ,
) ,
] ,
] ,
@ -653,19 +720,19 @@ class Migration(migrations.Migration):
) ,
) ,
(
(
" management_id " ,
" management_id " ,
models . CharField ( help_text = " Login du switch " , max_length = 63 ) ,
models . CharField ( help_text = " Switch login. " , max_length = 63 ) ,
) ,
) ,
(
(
" management_pass " ,
" management_pass " ,
re2o . aes_field . AESEncryptedField (
re2o . aes_field . AESEncryptedField (
help_text = " Mot de passe " , max_length = 63
help_text = " Password. " , max_length = 63
) ,
) ,
) ,
) ,
(
(
" default_switch " ,
" default_switch " ,
models . BooleanField (
models . BooleanField (
default = True ,
default = True ,
help_text = " Creds par défaut des switchs " ,
help_text = " Default credentials for switches. " ,
unique = True ,
unique = True ,
) ,
) ,
) ,
) ,
@ -697,17 +764,16 @@ class Migration(migrations.Migration):
" days " ,
" days " ,
models . IntegerField (
models . IntegerField (
default = 7 ,
default = 7 ,
help_text = " Délais entre le mail et la fin d ' adhésion " ,
help_text = " Delay between the email and the membership ' s end. " ,
unique = True ,
unique = True ,
) ,
) ,
) ,
) ,
(
(
" message " ,
" message " ,
models . Char Field(
models . Text Field(
blank = True ,
blank = True ,
default = " " ,
default = " " ,
help_text = " Message affiché spécifiquement pour ce rappel " ,
help_text = " Message displayed specifically for this reminder. " ,
max_length = 255 ,
null = True ,
null = True ,
) ,
) ,
) ,
) ,
@ -769,15 +835,15 @@ class Migration(migrations.Migration):
] ,
] ,
options = {
options = {
" permissions " : (
" permissions " : (
( " view_generaloption " , " Can view the general option s " ) ,
( " view_generaloption " , " Can view the general preference s " ) ,
) ,
) ,
" verbose_name " : " general option s " ,
" verbose_name " : " general preference s " ,
} ,
} ,
) ,
) ,
migrations . CreateModel (
migrations . CreateModel (
name = " Service " ,
name = " Service " ,
options = {
options = {
" permissions " : ( ( " view_service " , " Can view the service option s " ) , ) ,
" permissions " : ( ( " view_service " , " Can view the service preference s " ) , ) ,
" verbose_name " : " service " ,
" verbose_name " : " service " ,
" verbose_name_plural " : " services " ,
" verbose_name_plural " : " services " ,
} ,
} ,
@ -794,7 +860,7 @@ class Migration(migrations.Migration):
( " name " , models . CharField ( max_length = 32 ) ) ,
( " name " , models . CharField ( max_length = 32 ) ) ,
( " url " , models . URLField ( ) ) ,
( " url " , models . URLField ( ) ) ,
( " description " , models . TextField ( ) ) ,
( " description " , models . TextField ( ) ) ,
( " image " , models . ImageField ( upload_to = " logo " ) ) ,
( " image " , models . ImageField ( blank = True , upload_to = " logo " ) ) ,
] ,
] ,
) ,
) ,
migrations . CreateModel (
migrations . CreateModel (
@ -813,7 +879,7 @@ class Migration(migrations.Migration):
" address " ,
" address " ,
models . EmailField (
models . EmailField (
default = " contact@example.org " ,
default = " contact@example.org " ,
help_text = " Contact email adress " ,
help_text = " Contact email add ress. " ,
max_length = 254 ,
max_length = 254 ,
) ,
) ,
) ,
) ,
@ -821,7 +887,7 @@ class Migration(migrations.Migration):
" commentary " ,
" commentary " ,
models . CharField (
models . CharField (
blank = True ,
blank = True ,
help_text = " Description of the associated email adress. " ,
help_text = " Description of the associated email add ress. " ,
max_length = 256 ,
max_length = 256 ,
null = True ,
null = True ,
) ,
) ,
@ -857,9 +923,9 @@ class Migration(migrations.Migration):
) ,
) ,
] ,
] ,
options = {
options = {
" verbose_name " : " M andate" ,
" verbose_name " : " m andate" ,
" verbose_name_plural " : " M andates" ,
" verbose_name_plural " : " m andates" ,
" permissions " : ( ( " view_mandate " , " Can view a mandate " ) , ) ,
" permissions " : ( ( " view_mandate " , " Can view a mandate object " ) , ) ,
} ,
} ,
bases = ( re2o . mixins . RevMixin , re2o . mixins . AclMixin , models . Model ) ,
bases = ( re2o . mixins . RevMixin , re2o . mixins . AclMixin , models . Model ) ,
) ,
) ,
@ -1119,6 +1185,7 @@ class Migration(migrations.Migration):
) ,
) ,
) ,
) ,
] ,
] ,
options = { " verbose_name " : " subscription preferences " } ,
) ,
) ,
migrations . CreateModel (
migrations . CreateModel (
name = " DocumentTemplate " ,
name = " DocumentTemplate " ,