فهرست منبع

aggiunti campi per editing permessi amministratore

Mauro 11 ماه پیش
والد
کامیت
9b1f172833
2فایلهای تغییر یافته به همراه31 افزوده شده و 0 حذف شده
  1. 28 0
      amministratore/migrations/0005_amministratore_crea_permesso_and_more.py
  2. 3 0
      amministratore/models.py

+ 28 - 0
amministratore/migrations/0005_amministratore_crea_permesso_and_more.py

@@ -0,0 +1,28 @@
+# Generated by Django 5.1.2 on 2025-01-12 08:54
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('amministratore', '0004_amministratore_crea_comunicazione_and_more'),
+    ]
+
+    operations = [
+        migrations.AddField(
+            model_name='amministratore',
+            name='crea_permesso',
+            field=models.BooleanField(default=False),
+        ),
+        migrations.AddField(
+            model_name='amministratore',
+            name='edit_permesso',
+            field=models.BooleanField(default=False),
+        ),
+        migrations.AddField(
+            model_name='amministratore',
+            name='vedi_permesso',
+            field=models.BooleanField(default=True),
+        ),
+    ]

+ 3 - 0
amministratore/models.py

@@ -18,6 +18,9 @@ class Amministratore(models.Model):
   edit_utente = models.BooleanField(default=True)
   edit_documento = models.BooleanField(default=True)
   edit_comunicazione = models.BooleanField(default=True)
+  crea_permesso = models.BooleanField(default=False)
+  edit_permesso = models.BooleanField(default=False)
+  vedi_permesso = models.BooleanField(default=True)
 
   def __str__(self):
     return f"{self.id}: {self.nome}"