Postgres support (DB_* env), LoginEvent audit table, Choice.value 300, deploy.sh pg_dump backup
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
18
content/migrations/0012_choice_value_300.py
Normal file
18
content/migrations/0012_choice_value_300.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.2.17 on 2026-10-08 08:02
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('content', '0011_lesson_figures'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='choice',
|
||||
name='value',
|
||||
field=models.CharField(max_length=300),
|
||||
),
|
||||
]
|
||||
@@ -129,7 +129,8 @@ class Question(models.Model):
|
||||
|
||||
class Choice(models.Model):
|
||||
question = models.ForeignKey(Question, on_delete=models.CASCADE, related_name='choices')
|
||||
value = models.CharField(max_length=100)
|
||||
# ۳۰۰: یک گزینهی کتاب ۱۲۲ نویسه بود و SQLite طول را اجرا نمیکرد؛ Postgres رد میکرد.
|
||||
value = models.CharField(max_length=300)
|
||||
is_correct = models.BooleanField(default=False)
|
||||
|
||||
def __str__(self):
|
||||
|
||||
Reference in New Issue
Block a user