initial
This commit is contained in:
22
quiz/migrations/0003_alter_quiz_author.py
Normal file
22
quiz/migrations/0003_alter_quiz_author.py
Normal file
@@ -0,0 +1,22 @@
|
||||
# Generated by Django 4.2.13 on 2024-07-02 08:09
|
||||
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
import lib.middleware.current_user
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
('quiz', '0002_quiz_name'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='quiz',
|
||||
name='author',
|
||||
field=models.ForeignKey(default=lib.middleware.current_user.get_current_user, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user