0022_auto_20240806_1302.py 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. # Generated by Django 3.2.23 on 2024-08-06 13:02
  2. from django.db import migrations, models
  3. import django.db.models.deletion
  4. class Migration(migrations.Migration):
  5. dependencies = [
  6. ('gest_clin', '0002_auto_20231229_0916'),
  7. ('gest_user', '0021_ges_user_ges_date'),
  8. ]
  9. operations = [
  10. migrations.RemoveField(
  11. model_name='ges_app',
  12. name='GESAP_Commentaire',
  13. ),
  14. migrations.RemoveField(
  15. model_name='ges_user',
  16. name='GES_Commentaire',
  17. ),
  18. migrations.RemoveField(
  19. model_name='ges_user',
  20. name='GES_L_Site',
  21. ),
  22. migrations.AddField(
  23. model_name='ges_app',
  24. name='GESAP_Actif',
  25. field=models.BooleanField(default=True, verbose_name='Active ?'),
  26. ),
  27. migrations.AddField(
  28. model_name='ges_app',
  29. name='GESAP_Procedure',
  30. field=models.CharField(blank=True, max_length=248, verbose_name='Lien vers la Procédure de création de compte'),
  31. ),
  32. migrations.AddField(
  33. model_name='ges_user',
  34. name='GES_Site',
  35. field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, to='gest_clin.clinique', verbose_name='Clinique'),
  36. ),
  37. migrations.AlterField(
  38. model_name='ges_applink',
  39. name='GES_APPLink_APP',
  40. field=models.ForeignKey(limit_choices_to={'GESAP_Actif': True}, on_delete=django.db.models.deletion.CASCADE, to='gest_user.ges_app', verbose_name='Application'),
  41. ),
  42. migrations.AlterField(
  43. model_name='ges_applink',
  44. name='GES_APPLink_Sup',
  45. field=models.CharField(blank=True, max_length=16, verbose_name='Info supplémentaire'),
  46. ),
  47. migrations.AlterField(
  48. model_name='ges_user',
  49. name='GES_APPs',
  50. field=models.ManyToManyField(limit_choices_to={'GESAP_Actif': True}, to='gest_user.GES_APP', verbose_name='Applications'),
  51. ),
  52. migrations.AlterField(
  53. model_name='ges_user',
  54. name='GES_Date',
  55. field=models.DateField(blank=True, null=True, verbose_name="Date d'arrivée"),
  56. ),
  57. migrations.AlterField(
  58. model_name='ges_user',
  59. name='GES_Fonction',
  60. field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='gest_user.ges_fonction', verbose_name='Fonction'),
  61. ),
  62. migrations.AlterField(
  63. model_name='ges_user',
  64. name='GES_Motdepasse',
  65. field=models.CharField(blank=True, max_length=16, verbose_name='Mot de passe'),
  66. ),
  67. migrations.AlterField(
  68. model_name='ges_user',
  69. name='GES_Service',
  70. field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='gest_clin.services', verbose_name='Service'),
  71. ),
  72. migrations.CreateModel(
  73. name='GES_APPMat',
  74. fields=[
  75. ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  76. ('GES_APPs', models.ManyToManyField(limit_choices_to={'GESAP_Actif': True}, to='gest_user.GES_APP', verbose_name='Applications')),
  77. ('GES_Fonction', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='gest_user.ges_fonction', verbose_name='Fonction')),
  78. ('GES_Service', models.ManyToManyField(to='gest_clin.Services', verbose_name='Services')),
  79. ],
  80. options={
  81. 'verbose_name': 'Matrice Services - Fonctions - Applications',
  82. 'verbose_name_plural': 'Matrice Services - Fonctions - Applications',
  83. },
  84. ),
  85. ]