Skip to content

Commit

Permalink
Merge pull request #79 from SADiLaR/feature/user-experience
Browse files Browse the repository at this point in the history
Change of Document Files
  • Loading branch information
OnaMosimege authored Jun 19, 2024
2 parents b47e31a + ba1b6cc commit f12896f
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 @@ -98,7 +98,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 @@ -133,7 +133,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 @@ -148,8 +148,8 @@ class DocumentFile(models.Model):
history = HistoricalRecords(excluded_fields=["document_data", "search_vector"])

class Meta:
verbose_name = _("Document File")
verbose_name_plural = _("Document Files")
verbose_name = _("Document")
verbose_name_plural = _("Documents")

indexes = [
GinIndex(fields=["search_vector"]),
Expand Down

0 comments on commit f12896f

Please sign in to comment.