Skip to content

Commit 981fd1f

Browse files
hotfix: add is_active as a field on User
1 parent b1f0271 commit 981fd1f

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 5.2.10 on 2026-01-27 19:45
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('users', '0002_remove_user_is_sysadmin'),
10+
]
11+
12+
operations = [
13+
migrations.AddField(
14+
model_name='user',
15+
name='is_active',
16+
field=models.BooleanField(default=True),
17+
),
18+
]

tin/apps/users/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ class User(AbstractBaseUser, PermissionsMixin):
2929
is_student = models.BooleanField(default=False)
3030
date_joined = models.DateTimeField(default=timezone.now)
3131

32+
is_active = models.BooleanField(default=True)
33+
3234
USERNAME_FIELD = "username"
3335
REQUIRED_FIELDS = ["email"]
3436

0 commit comments

Comments
 (0)