Skip to content

Commit c323cdd

Browse files
authored
fix: remove unused internal_comments from the DocumentInfo abstract model (ietf-tools#7833)
1 parent f53d1ca commit c323cdd

4 files changed

Lines changed: 22 additions & 9 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Generated by Django 4.2.15 on 2024-08-16 16:43
2+
3+
from django.db import migrations
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
("doc", "0021_narrativeminutes"),
10+
]
11+
12+
operations = [
13+
migrations.RemoveField(
14+
model_name="dochistory",
15+
name="internal_comments",
16+
),
17+
migrations.RemoveField(
18+
model_name="document",
19+
name="internal_comments",
20+
),
21+
]

ietf/doc/models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ class DocumentInfo(models.Model):
122122
external_url = models.URLField(blank=True)
123123
uploaded_filename = models.TextField(blank=True)
124124
note = models.TextField(blank=True)
125-
internal_comments = models.TextField(blank=True)
126125
rfc_number = models.PositiveIntegerField(blank=True, null=True) # only valid for type="rfc"
127126

128127
def file_extension(self):

ietf/doc/resources.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ class Meta:
130130
"external_url": ALL,
131131
"uploaded_filename": ALL,
132132
"note": ALL,
133-
"internal_comments": ALL,
134133
"name": ALL,
135134
"type": ALL_WITH_RELATIONS,
136135
"stream": ALL_WITH_RELATIONS,
@@ -247,7 +246,6 @@ class Meta:
247246
"external_url": ALL,
248247
"uploaded_filename": ALL,
249248
"note": ALL,
250-
"internal_comments": ALL,
251249
"name": ALL,
252250
"type": ALL_WITH_RELATIONS,
253251
"stream": ALL_WITH_RELATIONS,

ietf/secr/static/css/custom.css

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -319,11 +319,6 @@ input.draft-file-input {
319319
width: 4em;
320320
}
321321

322-
.draft-container #id_internal_comments {
323-
height: 4em;
324-
width: 40em;
325-
}
326-
327322
.draft-container #id_abstract {
328323
height: 15em;
329324
width: 40em;
@@ -842,4 +837,4 @@ td, th, li, h2 {
842837

843838
thead th {
844839
font-size: 12px;
845-
}
840+
}

0 commit comments

Comments
 (0)