Skip to content

Commit 5e1da06

Browse files
committed
fix: marks RevisionRequest.RevisionAction as blank=True
1 parent 65d95eb commit 5e1da06

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 4.2.20 on 2025-12-11 11:57
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('review', '0024_remove_frozenreviewformelement_width_and_more'),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name='revisionrequest',
15+
name='actions',
16+
field=models.ManyToManyField(blank=True, to='review.revisionaction'),
17+
),
18+
]

src/review/models.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from django.db import models
77
from django.utils import timezone
8-
from django.db.models import Max, Q, Value
8+
from django.db.models import Max, Q
99
from django.core.validators import MinValueValidator, MaxValueValidator
1010
from django.contrib.contenttypes.models import ContentType
1111
from django.utils.translation import gettext as _
@@ -628,7 +628,8 @@ class RevisionRequest(models.Model):
628628
"please add this above'",
629629
) # Note from Author to Editor
630630
actions = models.ManyToManyField(
631-
RevisionAction
631+
RevisionAction,
632+
blank=True,
632633
) # List of actions Author took during Revision Request
633634
type = models.CharField(
634635
max_length=20,

0 commit comments

Comments
 (0)