fix: remove unused internal_comments from the DocumentInfo abstract model (#7833)
This commit is contained in:
parent
f53d1cae65
commit
c323cdde03
|
@ -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",
|
||||||
|
),
|
||||||
|
]
|
|
@ -122,7 +122,6 @@ class DocumentInfo(models.Model):
|
||||||
external_url = models.URLField(blank=True)
|
external_url = models.URLField(blank=True)
|
||||||
uploaded_filename = models.TextField(blank=True)
|
uploaded_filename = models.TextField(blank=True)
|
||||||
note = 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"
|
rfc_number = models.PositiveIntegerField(blank=True, null=True) # only valid for type="rfc"
|
||||||
|
|
||||||
def file_extension(self):
|
def file_extension(self):
|
||||||
|
|
|
@ -130,7 +130,6 @@ class DocumentResource(ModelResource):
|
||||||
"external_url": ALL,
|
"external_url": ALL,
|
||||||
"uploaded_filename": ALL,
|
"uploaded_filename": ALL,
|
||||||
"note": ALL,
|
"note": ALL,
|
||||||
"internal_comments": ALL,
|
|
||||||
"name": ALL,
|
"name": ALL,
|
||||||
"type": ALL_WITH_RELATIONS,
|
"type": ALL_WITH_RELATIONS,
|
||||||
"stream": ALL_WITH_RELATIONS,
|
"stream": ALL_WITH_RELATIONS,
|
||||||
|
@ -247,7 +246,6 @@ class DocHistoryResource(ModelResource):
|
||||||
"external_url": ALL,
|
"external_url": ALL,
|
||||||
"uploaded_filename": ALL,
|
"uploaded_filename": ALL,
|
||||||
"note": ALL,
|
"note": ALL,
|
||||||
"internal_comments": ALL,
|
|
||||||
"name": ALL,
|
"name": ALL,
|
||||||
"type": ALL_WITH_RELATIONS,
|
"type": ALL_WITH_RELATIONS,
|
||||||
"stream": ALL_WITH_RELATIONS,
|
"stream": ALL_WITH_RELATIONS,
|
||||||
|
|
|
@ -319,11 +319,6 @@ input.draft-file-input {
|
||||||
width: 4em;
|
width: 4em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.draft-container #id_internal_comments {
|
|
||||||
height: 4em;
|
|
||||||
width: 40em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.draft-container #id_abstract {
|
.draft-container #id_abstract {
|
||||||
height: 15em;
|
height: 15em;
|
||||||
width: 40em;
|
width: 40em;
|
||||||
|
@ -842,4 +837,4 @@ td, th, li, h2 {
|
||||||
|
|
||||||
thead th {
|
thead th {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue