fix: remove unused internal_comments from the DocumentInfo abstract model (#7833)

This commit is contained in:
Robert Sparks 2024-08-21 08:32:06 -05:00 committed by GitHub
parent f53d1cae65
commit c323cdde03
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 22 additions and 9 deletions

View file

@ -0,0 +1,21 @@
# Generated by Django 4.2.15 on 2024-08-16 16:43
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("doc", "0021_narrativeminutes"),
]
operations = [
migrations.RemoveField(
model_name="dochistory",
name="internal_comments",
),
migrations.RemoveField(
model_name="document",
name="internal_comments",
),
]

View file

@ -122,7 +122,6 @@ class DocumentInfo(models.Model):
external_url = models.URLField(blank=True)
uploaded_filename = models.TextField(blank=True)
note = models.TextField(blank=True)
internal_comments = models.TextField(blank=True)
rfc_number = models.PositiveIntegerField(blank=True, null=True) # only valid for type="rfc"
def file_extension(self):

View file

@ -130,7 +130,6 @@ class DocumentResource(ModelResource):
"external_url": ALL,
"uploaded_filename": ALL,
"note": ALL,
"internal_comments": ALL,
"name": ALL,
"type": ALL_WITH_RELATIONS,
"stream": ALL_WITH_RELATIONS,
@ -247,7 +246,6 @@ class DocHistoryResource(ModelResource):
"external_url": ALL,
"uploaded_filename": ALL,
"note": ALL,
"internal_comments": ALL,
"name": ALL,
"type": ALL_WITH_RELATIONS,
"stream": ALL_WITH_RELATIONS,

View file

@ -319,11 +319,6 @@ input.draft-file-input {
width: 4em;
}
.draft-container #id_internal_comments {
height: 4em;
width: 40em;
}
.draft-container #id_abstract {
height: 15em;
width: 40em;
@ -842,4 +837,4 @@ td, th, li, h2 {
thead th {
font-size: 12px;
}
}