Skip to content

Commit

Permalink
Change document files to documents, and document type to document cat…
Browse files Browse the repository at this point in the history
…egory
  • Loading branch information
“OMosimege” committed Jun 19, 2024
1 parent 833ca2b commit ba1b6cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion app/general/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ class InstitutionAdmin(SimpleHistoryAdmin):
ordering = ["name"]
search_fields = ["name"]
list_display = ["name"]
inlines = [ProjectAdminInline]
history_list_display = ["name", "abbreviation"]


Expand Down
6 changes: 3 additions & 3 deletions app/general/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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

0 comments on commit ba1b6cc

Please sign in to comment.