Coverage for app/venv/lib/python3.14/site-packages/weblate/accounts/migrations/0012_alter_auditlog_activity_profile_last_2fa.py: 100%

4 statements  

« prev     ^ index     » next       coverage.py v7.15.2, created at 2026-10-07 07:15 +0000

1# Copyright © Michal Čihař <michal@weblate.org> 

2# 

3# SPDX-License-Identifier: GPL-3.0-or-later 

4 

5# Generated by Django 5.0.7 on 2024-08-03 06:54 

6 

7from django.db import migrations, models 

8 

9 

10class Migration(migrations.Migration): 

11 dependencies = [ 

12 ("accounts", "0011_alter_subscription_notification"), 

13 ] 

14 

15 operations = [ 

16 migrations.AlterField( 

17 model_name="auditlog", 

18 name="activity", 

19 field=models.CharField( 

20 choices=[ 

21 ("accepted", "accepted"), 

22 ("auth-connect", "auth-connect"), 

23 ("auth-disconnect", "auth-disconnect"), 

24 ("autocreated", "autocreated"), 

25 ("blocked", "blocked"), 

26 ("connect", "connect"), 

27 ("disabled", "disabled"), 

28 ("donate", "donate"), 

29 ("email", "email"), 

30 ("enabled", "enabled"), 

31 ("failed-auth", "failed-auth"), 

32 ("full_name", "full_name"), 

33 ("invited", "invited"), 

34 ("locked", "locked"), 

35 ("login", "login"), 

36 ("login-new", "login-new"), 

37 ("password", "password"), 

38 ("recovery-generate", "recovery-generate"), 

39 ("recovery-show", "recovery-show"), 

40 ("register", "register"), 

41 ("removal-request", "removal-request"), 

42 ("removed", "removed"), 

43 ("reset", "reset"), 

44 ("reset-request", "reset-request"), 

45 ("sent-email", "sent-email"), 

46 ("team-add", "team-add"), 

47 ("team-remove", "team-remove"), 

48 ("tos", "tos"), 

49 ("trial", "trial"), 

50 ("twofactor-add", "twofactor-add"), 

51 ("twofactor-login", "twofactor-login"), 

52 ("twofactor-remove", "twofactor-remove"), 

53 ("username", "username"), 

54 ], 

55 db_index=True, 

56 max_length=20, 

57 ), 

58 ), 

59 migrations.AddField( 

60 model_name="profile", 

61 name="last_2fa", 

62 field=models.CharField( 

63 blank=True, 

64 choices=[("", "None"), ("totp", "TOTP"), ("webauthn", "WebAuthn")], 

65 default="", 

66 max_length=15, 

67 ), 

68 ), 

69 ]