From ba1b6cc3903b53a4cc62ed399c015385fa8b0ec2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9COMosimege=E2=80=9D?= <“onalerona.mosimege@gmail.com”> Date: Tue, 18 Jun 2024 09:38:31 +0200 Subject: [PATCH] Change document files to documents, and document type to document category --- app/general/admin.py | 1 - app/general/models.py | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/general/admin.py b/app/general/admin.py index a9b55bd0..e22ede8d 100644 --- a/app/general/admin.py +++ b/app/general/admin.py @@ -97,7 +97,6 @@ class InstitutionAdmin(SimpleHistoryAdmin): ordering = ["name"] search_fields = ["name"] list_display = ["name"] - inlines = [ProjectAdminInline] history_list_display = ["name", "abbreviation"] diff --git a/app/general/models.py b/app/general/models.py index 0192530e..c83ffffc 100644 --- a/app/general/models.py +++ b/app/general/models.py @@ -131,7 +131,7 @@ class DocumentFile(models.Model): verbose_name=_("MIME type"), ) document_type = models.CharField( - max_length=200, choices=document_type_choices, verbose_name=_("document type") + max_length=200, choices=document_type_choices, verbose_name=_("document category") ) document_data = models.TextField(blank=True, verbose_name=_("document data")) institution = models.ForeignKey( @@ -144,8 +144,8 @@ class DocumentFile(models.Model): history = HistoricalRecords(excluded_fields=["document_data"]) class Meta: - verbose_name = _("Document File") - verbose_name_plural = _("Document Files") + verbose_name = _("Document") + verbose_name_plural = _("Documents") def __str__(self): return self.title