From c323cdde036593244ddcec218c0ffcedda56e792 Mon Sep 17 00:00:00 2001 From: Robert Sparks Date: Wed, 21 Aug 2024 08:32:06 -0500 Subject: [PATCH] fix: remove unused internal_comments from the DocumentInfo abstract model (#7833) --- ...e_dochistory_internal_comments_and_more.py | 21 +++++++++++++++++++ ietf/doc/models.py | 1 - ietf/doc/resources.py | 2 -- ietf/secr/static/css/custom.css | 7 +------ 4 files changed, 22 insertions(+), 9 deletions(-) create mode 100644 ietf/doc/migrations/0022_remove_dochistory_internal_comments_and_more.py diff --git a/ietf/doc/migrations/0022_remove_dochistory_internal_comments_and_more.py b/ietf/doc/migrations/0022_remove_dochistory_internal_comments_and_more.py new file mode 100644 index 0000000000..ad27793a83 --- /dev/null +++ b/ietf/doc/migrations/0022_remove_dochistory_internal_comments_and_more.py @@ -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", + ), + ] diff --git a/ietf/doc/models.py b/ietf/doc/models.py index a103fca645..639e6ca857 100644 --- a/ietf/doc/models.py +++ b/ietf/doc/models.py @@ -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): diff --git a/ietf/doc/resources.py b/ietf/doc/resources.py index 6bb6ffa281..bba57013b9 100644 --- a/ietf/doc/resources.py +++ b/ietf/doc/resources.py @@ -130,7 +130,6 @@ class Meta: "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 Meta: "external_url": ALL, "uploaded_filename": ALL, "note": ALL, - "internal_comments": ALL, "name": ALL, "type": ALL_WITH_RELATIONS, "stream": ALL_WITH_RELATIONS, diff --git a/ietf/secr/static/css/custom.css b/ietf/secr/static/css/custom.css index 8816b3f13d..8a622cba5d 100644 --- a/ietf/secr/static/css/custom.css +++ b/ietf/secr/static/css/custom.css @@ -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; -} \ No newline at end of file +}