-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add related names and replace auto_now_add on user app models
- Loading branch information
1 parent
9d83d4b
commit 3989940
Showing
2 changed files
with
65 additions
and
9 deletions.
There are no files selected for viewing
58 changes: 58 additions & 0 deletions
58
smartmin/users/migrations/0004_alter_failedlogin_failed_on_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Generated by Django 5.0.3 on 2024-06-13 18:36 | ||
|
||
import django.db.models.deletion | ||
import django.utils.timezone | ||
from django.conf import settings | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("users", "0003_auto_20210219_1548"), | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="failedlogin", | ||
name="failed_on", | ||
field=models.DateTimeField(default=django.utils.timezone.now), | ||
), | ||
migrations.AlterField( | ||
model_name="passwordhistory", | ||
name="password", | ||
field=models.CharField(max_length=255), | ||
), | ||
migrations.AlterField( | ||
model_name="passwordhistory", | ||
name="set_on", | ||
field=models.DateTimeField(default=django.utils.timezone.now), | ||
), | ||
migrations.AlterField( | ||
model_name="passwordhistory", | ||
name="user", | ||
field=models.ForeignKey( | ||
on_delete=django.db.models.deletion.PROTECT, | ||
related_name="password_history", | ||
to=settings.AUTH_USER_MODEL, | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="recoverytoken", | ||
name="created_on", | ||
field=models.DateTimeField(default=django.utils.timezone.now), | ||
), | ||
migrations.AlterField( | ||
model_name="recoverytoken", | ||
name="token", | ||
field=models.CharField(max_length=32, unique=True), | ||
), | ||
migrations.AlterField( | ||
model_name="recoverytoken", | ||
name="user", | ||
field=models.ForeignKey( | ||
on_delete=django.db.models.deletion.PROTECT, related_name="recovery_tokens", to=settings.AUTH_USER_MODEL | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters