Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Sep 27, 2023
1 parent 4db8b56 commit 8246c2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
14 changes: 3 additions & 11 deletions cfl_common/common/migrations/0045_otp.py
Original file line number Diff line number Diff line change
@@ -1,31 +1,23 @@
# Generated by Django 3.2.20 on 2023-09-27 13:23
# Generated by Django 3.2.20 on 2023-09-27 13:36

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('common', '0044_update_activity_models'),
]

operations = [
migrations.AddField(
model_name='userprofile',
name='last_otp_for_time',
field=models.DateTimeField(null=True),
field=models.DateTimeField(blank=True, null=True),
),
migrations.AddField(
model_name='userprofile',
name='otp_secret',
field=models.CharField(max_length=40, null=True),
),
migrations.AlterField(
model_name='userprofile',
name='user',
field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='profile', to=settings.AUTH_USER_MODEL),
field=models.CharField(blank=True, max_length=40, null=True),
),
]
10 changes: 3 additions & 7 deletions cfl_common/common/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,10 @@


class UserProfile(models.Model):
user = models.OneToOneField(
User,
related_name="profile",
on_delete=models.CASCADE,
)
user = models.OneToOneField(User, on_delete=models.CASCADE)

otp_secret = models.CharField(max_length=40, null=True)
last_otp_for_time = models.DateTimeField(null=True)
otp_secret = models.CharField(max_length=40, null=True, blank=True)
last_otp_for_time = models.DateTimeField(null=True, blank=True)
developer = models.BooleanField(default=False)
is_verified = models.BooleanField(default=False)

Expand Down

0 comments on commit 8246c2e

Please sign in to comment.