Skip to content

Commit 4bcd3f5

Browse files
feat: SPID/CIE access ticket
1 parent 389256c commit 4bcd3f5

14 files changed

Lines changed: 454 additions & 352 deletions

File tree

uniticket/accounts/admin.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
@admin.register(User)
99
class CustomUserAdmin(UserAdmin):
10-
readonly_fields = ('date_joined', 'last_login', 'manual_user_update')
10+
readonly_fields = ('date_joined', 'last_login', 'manual_user_update','last_login_context')
1111
list_display = ('username', 'last_name', 'first_name',
1212
'identificativo_dipendente', 'identificativo_utente',
1313
'email', 'email_notify',
@@ -38,7 +38,8 @@ class CustomUserAdmin(UserAdmin):
3838

3939
(_('Date accessi sistema'), {'fields': (('date_joined',
4040
'last_login',
41-
'manual_user_update'))
41+
'manual_user_update',
42+
'last_login_context'))
4243
}),
4344
)
4445
add_fieldsets = (
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 5.2.8 on 2025-12-04 13:17
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
("accounts", "0003_user_user_update_date"),
10+
]
11+
12+
operations = [
13+
migrations.AddField(
14+
model_name="user",
15+
name="last_login_context",
16+
field=models.CharField(blank=True, default="", max_length=70),
17+
),
18+
]

uniticket/accounts/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ class User(AbstractUser):
3333
blank=True, null=True)
3434
email_notify = models.BooleanField(_('Notifiche mail'), default=True)
3535
manual_user_update = models.DateTimeField(_('Ultimo aggiornamento manuale dei dati'), blank=True, null=True)
36-
36+
last_login_context = models.CharField(default="", max_length=70, blank=True)
37+
3738
class Meta:
3839
ordering = ['last_name', 'first_name']
3940
verbose_name_plural = _("Utenti")

uniticket/api_rest/views/user.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ class TicketAPIView(TicketAPIBaseView):
5151
- allow_employee
5252
- allow_guest
5353
- allow_user
54+
- allow_spid_cie
5455
- allowed_to_user
5556
- allowed_users
5657
- allowed_users_lists

0 commit comments

Comments
 (0)